Adjusted java coding style