Skip to content

Commit

Permalink
Remove stale references to error_prone_ant
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon committed Nov 8, 2018
1 parent f2bb539 commit 61841e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ API, and can be used with JDK 9, 10 and 11 by adding Error Prone to the
Example:

```bash
ERROR_PRONE_JAR=... @ path to error_prone_ant-2.3.2.jar
wget https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2.3.2/error_prone_core-2.3.2-with-dependencies.jar
javac \
-XDcompilePolicy=simple \
-processorpath $ERROR_PRONE_JAR \
-processorpath error_prone_core-2.3.2-with-dependencies.jar \
'-Xplugin:ErrorProne -XepDisableAllChecks -Xep:CollectionIncompatibleType:ERROR' \
ShortSet.java
```
Expand All @@ -229,15 +229,14 @@ ShortSet.java:8: error: [CollectionIncompatibleType] Argument 'i - 1' should not
To use Error Prone from the command line as a javac replacement:

```
wget https://repo1.maven.org/maven2/com/google/errorprone/error_prone_ant/2.3.2/error_prone_ant-2.3.2.jar
java -Xbootclasspath/p:error_prone_ant-2.3.2.jar com.google.errorprone.ErrorProneCompiler Test.java
```

```
Test.java:1: error: [InfiniteRecursion] This method always recurses, and will cause a StackOverflowError
class Test { void f() { f(); } }
^
(see http://errorprone.info/bugpattern/InfiniteRecursion)
wget https://repo1.maven.org/maven2/com/google/errorprone/javac/9+181-r4173-1/javac-9+181-r4173-1.jar
wget https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2.3.2/error_prone_core-2.3.2-with-dependencies.jar
javac \
-J-Xbootclasspath/p:javac-9+181-r4173-1.jar \
-XDcompilePolicy=simple \
-processorpath error_prone_core-2.3.2-with-dependencies.jar \
'-Xplugin:ErrorProne -XepDisableAllChecks -Xep:CollectionIncompatibleType:ERROR' \
ShortSet.java
```

## My build system isn't listed here
Expand Down
3 changes: 2 additions & 1 deletion docs/refaster.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ class Demo {

```
javac \
-J-Xbootclasspath/p:javac-9+181-r4173-1.jar \
-XDcompilePolicy=byfile \
-processorpath error_prone_ant-2.3.1.jar \
-processorpath error_prone_core-2.3.2-with-dependencies.jar \
"-Xplugin:ErrorProne -XepPatchChecks:refaster:${PWD}/myrule.refaster -XepPatchLocation:${PWD}" \
Demo.java
```
Expand Down

0 comments on commit 61841e1

Please sign in to comment.