Added
- Add
cleanup(false)togoogleJavaFormat()to disable google-java-format's non-whitespace cleanups. (#3157) - Add
maxLineLength(int)togoogleJavaFormat(). (#3151)
Overrides the 100-column limit prescribed by the GOOGLE and AOSP styles; requiresgoogle-java-format2.0.0or later.
Changes
- Bump default
google-java-formatversion1.36.1->2.0.0. (#3157)
This version applies some small non-whitespace cleanups by default (removing redundant semicolons, empty annotation parentheses, and parentheses around single lambda parameters), which can be disabled withcleanup(false).