Google Java Format Versions Save

Reformats Java source code to comply with Google Java Style.

v1.22.0

3 weeks ago

Changes:

  • Improve support for tokens that span multiple lines (9bdae025b7b023d45636e707c9225d0cdd66eb0b)
  • Fix an issue with text block formatting, when the text block is the receiver of a method call (#1081)
  • google-java-format-diff.py now parallelizes the calls to the formatter, for better performance (3ee6e2a34029bc5e68a5f733749e2732c2bf7940)

Full Changelog: https://github.com/google/google-java-format/compare/v1.21.0...v1.22.0

v1.21.0

1 month ago

Formatting changes:

  • Adjust indentation of text blocks (ce3cb59a8d649359a8e6e7fcc5f2f21bb79b3df1)

Bug fixes:

  • Fix a crash with comments inside string templates (e946e82801eb5bbd52bea00355ba20450bc0725c)
  • Native image -version reports HEAD-SNAPSHOT instead of the correct version (#1068)
  • Improve compatibility with older glibc versions (#1072)

Full Changelog: https://github.com/google/google-java-format/compare/v1.20.0...v1.21.0

v1.20.0

2 months ago

This release includes GraalVM native-image binaries for google-java-format for windows, linux, and mac. These binaries offer improved startup performance.

Changes:

  • Keep type-use annotation with type when wrapping (03efe44d9affc989eee8623651fbdf1bcc7240dc)
  • Handle 'any' patterns (#1037)

Full Changelog: https://github.com/google/google-java-format/compare/v1.19.2...v1.20.0

v1.19.2

3 months ago

Changes

  • Improve support for string templates (#1010)
  • Handle var in record patterns (#1020)

Full Changelog: https://github.com/google/google-java-format/compare/v1.19.1...v1.19.2

v1.19.1

4 months ago

Changes

  • Fix support for Java 21 features by enabling JDK 21 for release builds (#1014).

Full Changelog: https://github.com/google/google-java-format/compare/v1.19.0...v1.19.1

v1.19.0

4 months ago

Changes

This release adds initial support for more Java 21 features, including:

  • String templates (#981)
  • Unnamed variables (#978)
  • Pattern matching and guard clauses in switch expressions (#937, #880, #983, #988)

Other changes:

  • Handle type annotations on method reference qualifiers (53390d99b56edae23cfab5adcafd7df28d9984c8)
  • Avoid reflowing text blocks (#976)

Full Changelog: https://github.com/google/google-java-format/compare/v1.18.1...v1.19.0

v1.18.1

6 months ago

Changes

  • Fixed version number for Eclipse plugin (#744)

Full Changelog: https://github.com/google/google-java-format/compare/v1.18.0...v1.18.1

v1.18.0

6 months ago

Changes

Full Changelog: https://github.com/google/google-java-format/compare/v1.17.0...v1.18.0

v1.17.0

11 months ago

Changes

  • Fix compatibility with OpenJDK 21 early access builds (#898)

Full Changelog: https://github.com/google/google-java-format/compare/v1.16.0...v1.17.0

v1.16.0

1 year ago

Changes

Bug fixes

  • Return a non-zero exit code on error (#848)
  • Formatter leaks threads and memory (#847)

Full Changelog: https://github.com/google/google-java-format/compare/v1.15.0...v1.16.0