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
5 files changed
tree: 5a016c155a9cc1c90814f91eb28af0514be9384e
  1. core/
  2. idea_plugin/
  3. scripts/
  4. .gitignore
  5. .travis.yml
  6. CONTRIBUTING.md
  7. LICENSE
  8. pom.xml
  9. README.md
README.md

google-java-format

Build Status

google-java-format is a program that reformats Java source code to comply with Google Java Style.

Building

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