Skip to content

Releases: google/google-java-format

v1.19.2

05 Jan 19:50
Compare
Choose a tag to compare

Changes

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

Full Changelog: v1.19.1...v1.19.2

v1.19.1

19 Dec 17:35
Compare
Choose a tag to compare

Changes

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

Full Changelog: v1.19.0...v1.19.1

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