From 49afbdcd8168d67b767edb3a96b90d77ca5238bb Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 28 Jul 2026 10:16:45 -0700 Subject: [PATCH] Update the location of the required Java version after https://github.com/google/google-java-format/commit/bf4b13ba2d727498da1711b79d5b3765f32a9ba1. (And link to it for good measure.) PiperOrigin-RevId: 955328807 --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b90dc4a91..4f40e001f 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,10 @@ java -jar /path/to/google-java-format-${GJF_VERSION?}-all-deps.jar [fi Note that it uses the `jdk.compiler` module to parse the Java source code. The `java` binary version used must therefore be from a JDK (not JRE) with a version equal to or newer than the Java language version of the files being formatted. -The minimum Java version can be found in `core/pom.xml` (currently Java 21). An -alternative is to use the available GraalVM based native binaries instead. +The minimum Java version can be found in +[`pom.xml`](https://github.com/google/google-java-format/blob/master/pom.xml) +(currently Java 21). An alternative is to use the available GraalVM based native +binaries instead. The formatter can act on whole files, on limited lines (`--lines`), on specific offsets (`--offset`), passing through to standard-out (default) or altered