Fix formatting for Java code snippet.