Skip to content

Commit 752ce2d

Browse files
committed
Refine FAQ
1 parent 41684c1 commit 752ce2d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/code-howtos/faq.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ Background: [OpenRewrite](https://docs.openrewrite.org/) is an automated refacto
2020

2121
### Failing Google Java Format (AOSP) tests
2222

23-
Please ensure that you setup and configured the Google Java Format IntelliJ plugin correctly.
23+
Please ensure that you set up and configured the Google Java Format IntelliJ plugin correctly.
2424

25-
On Windows, to fix using the CLI, you can run the following command in the root directory of the project:
25+
It is also possible to run it on the command line.
26+
Download the bineary from the [Google Java Format project](https://github.com/google/google-java-format).
27+
28+
On Windows, to fix using the command line, you can run the following command in the root directory of the project:
2629

2730
```bash
2831
find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_windows-x86-64.exe -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \;
@@ -31,7 +34,7 @@ find . -name "*.java" -exec /c/Users/{username}/Downloads/google-java-format_win
3134
On Linux, it is similar to following call:
3235

3336
```bash
34-
find . -name "*.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/google-java-format-1.24.0-all-deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \;
37+
find . -name "*.java" -exec /c/Program\ Files/OpenJDK/jdk-21.0.2/bin/java --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -jar /c/Users/{username}/Downloads/`google-java-format-1.24.0-al`l-deps.jar -r -a --skip-reflowing-long-strings --skip-javadoc-formatting "{}" \;
3538
```
3639

3740
Note that the `.exe` does not produce the same results - thus the following command does not work:

0 commit comments

Comments
 (0)