[contrib] Fix some formatting related to java.