Better Java coding style