Skip to content

Commit

Permalink
Remove documentation for --add-exports and --add-opens flags
Browse files Browse the repository at this point in the history
These are now specified in the manifest: unknown commit

PiperOrigin-RevId: 432959471
  • Loading branch information
cushon authored and google-java-format Team committed Mar 7, 2022
1 parent ee81afc commit 13ca73e
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ To reformat changed lines in a specific patch, use
formatting. This is a deliberate design decision to unify our code formatting on
a single format.*

#### JDK 16

The following flags are required when running on JDK 16, due to
[JEP 396: Strongly Encapsulate JDK Internals by Default](https://openjdk.java.net/jeps/396):

```
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 google-java-format-${GJF_VERSION?}-all-deps.jar <options> [files...]
```

### IntelliJ, Android Studio, and other JetBrains IDEs

A
Expand Down

0 comments on commit 13ca73e

Please sign in to comment.