Clean Java code