Don't crash on empty type declarations. JLS 7.6 says: > Extra ";" tokens appearing at the level of type declarations in a compilation > unit have no effect on the meaning of the compilation unit. Stray semicolons > are permitted in the Java programming language solely as a concession to C++ > programmers who are used to placing ";" after a class declaration. They > should not be used in new Java code. The formatted output for this is not pretty, but we don't care. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=106540484
google-java-format is a program that reformats Java source code to comply with Google Java Style.
To build google-java-format from source, you will need copy IntelliJ's platform JARs from a local IntelliJ install; see install-idea-jars.sh. Alternatively, you can skip building the IntelliJ plugin:
mvn -pl '!idea_plugin' install