Skip to content

Releases: google/google-java-format

v1.19.0

18 Dec 21:09
Compare
Choose a tag to compare

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 (53390d9)
  • Avoid reflowing text blocks (#976)

Full Changelog: v1.18.1...v1.19.0

v1.18.1

05 Oct 14:58
Compare
Choose a tag to compare

Changes

  • Fixed version number for Eclipse plugin (#744)

Full Changelog: v1.18.0...v1.18.1

v1.18.0

02 Oct 21:04
Compare
Choose a tag to compare

Changes

Full Changelog: v1.17.0...v1.18.0

v1.17.0

01 May 21:09
Compare
Choose a tag to compare

Changes

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

Full Changelog: v1.16.0...v1.17.0

v1.16.0

24 Feb 22:01
Compare
Choose a tag to compare

Changes

  • Format long exception lists one per line (198fa42)
  • Normalize parameter comments (dda4321)

Bug fixes

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

Full Changelog: v1.15.0...v1.16.0

v1.15.0

07 Mar 16:56
Compare
Choose a tag to compare

What's Changed

  • Passing --add-exports flags on the command line is no longer necessary for JDK 17 and newer (ee81afc)

Full Changelog: v1.14.0...v1.15.0

1.14.0

09 Feb 20:00
Compare
Choose a tag to compare

What's Changed

  • Handle modifiers that start with non- (#696)
  • Treat single-character upper case identifiers as UpperCamelCase, to improve formatting of Android R classes (16e72a1)
  • Don't format javadoc without a summary fragment as a single-line (668f108)

Full Changelog: v1.13.0...v1.14.0

1.13.0

19 Nov 23:06
Compare
Choose a tag to compare

What's Changed

  • Fix formatting of pattern matching in switch when running on Java 17 (#689, #690)

Full Changelog: v1.12.0...v1.13.0

1.12.0

20 Oct 20:34
Compare
Choose a tag to compare

What's Changed

  • Format type annotation as part of the type, not part of the modifiers list (#653)
  • Fix indentation of case statements on JDK 17 (#654)

Full Changelog: v1.11.0...v1.12.0

1.11.0

30 Jul 01:41
Compare
Choose a tag to compare

google-java-format now has improved support for running on JDK 17 early access builds.

Changes:

  • Handle final variables in instanceof patterns (#588)
  • Fix handling of annotations in compact record constructors (#574)
  • Fix a crash in instanceof pattern handling (#594)
  • Wrap multiple values in switch expression case (#540)
  • Fix formatting of module trees after JDK-8255464
  • Support sealed classes (#603)