@cushon cushon released this May 25, 2018 · 19 commits to master since this release

Assets 7


  • Don't format annotations as block-like constructs (#159)
  • Add horizontal whitespace between varargs specifiers and type annotations (#282)
  • Don't add spaces to //$NON-NLS-x$ comments (#221)
  • Unify breaks between type parameters
  • Add support for --assume-filename

Incompatible changes

  • Version 1.6.1 of the IntelliJ plugin now notifies if google-java-format hasn't been configured for new projects. (Version 1.6.0 of the plugin enabled the formatter by default, but this behaviour was reverted in 1.6.1. See #290.)

Bug Fixes

  • Don't crash on empty enum declarations (#281)
  • Don't crash on unusual line separators (#201)

@cushon cushon released this Oct 18, 2017 · 73 commits to master since this release

Assets 7


  • Improved support for checking if files are already formatted: --dry-run prints the paths of files whose contents would change if the formatter were run normally, and --set-exit-if-changed returns exit code 1 if there are any formatting changes. (#105)
  • Added support for javac-style @params files. (#77).

Bug fixes:

  • Improved partial formatting within switch statements (c63984a).
  • Improved import ordering logic to handle imports not separated by newlines (7225e17, 8364f6c).

@cushon cushon released this Aug 29, 2017 · 111 commits to master since this release

Assets 7

1.4 release

  • initial support for Java 9 language features (effectively final variables in try-with-resources, module-info.java files).
  • Remove java.lang imports
  • Handle varargs lambda parameters
  • Wrap line comments that exceed the column limit
  • Ensure leading spaces are present in line comments (//comment -> // comment).
  • Wrap before /*parameter=*/ comments.
  • Handle type-annotated varargs.

@cgruber cgruber released this Nov 9, 2015 · 361 commits to master since this release

Assets 3

Early release of Google's Java Formatter for use in formatting code to google's style.