diff --git a/README.md b/README.md deleted file mode 100644 index b1948b07da5..00000000000 --- a/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# Error Prone - -Error Prone is a static analysis tool for Java that catches common programming -mistakes at compile-time. - -```java -public class ShortSet { - public static void main (String[] args) { - Set s = new HashSet<>(); - for (short i = 0; i < 100; i++) { - s.add(i); - s.remove(i - 1); - } - System.out.println(s.size()); - } -} -``` - -``` -error: [CollectionIncompatibleType] Argument 'i - 1' should not be passed to this method; -its type int is not compatible with its collection's type argument Short - s.remove(i - 1); - ^ - (see http://errorprone.info/bugpattern/CollectionIncompatibleType) -1 error -``` - -## Getting Started - -Our documentation is at [errorprone.info](http://errorprone.info). - -Error Prone works with [Bazel](http://bazel.io), [Maven](http://maven.apache.org), [Ant](http://ant.apache.org), and [Gradle](http://gradle.org). See our [installation instructions](http://errorprone.info/docs/installation) for details. - -## Developing Error Prone - -Developing and building Error Prone is documented on the [wiki](https://github.com/google/error-prone/wiki/For-Developers). - -## Links - -- Mailing lists - - [General discussion](https://groups.google.com/forum/#!forum/error-prone-discuss) - - [Announcements](https://groups.google.com/forum/#!forum/error-prone-announce) -- [Javadoc](http://errorprone.info/api/latest/) -- Pre-release snapshots are available from [Sonatype's snapshot repository](https://oss.sonatype.org/content/repositories/snapshots/com/google/errorprone/). diff --git a/annotation/pom.xml b/annotation/pom.xml index 824d5902598..7ace8ae16f1 100644 --- a/annotation/pom.xml +++ b/annotation/pom.xml @@ -27,6 +27,13 @@ @BugPattern annotation error_prone_annotation + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + diff --git a/annotations/pom.xml b/annotations/pom.xml index 784434addb1..a5cc7136afc 100644 --- a/annotations/pom.xml +++ b/annotations/pom.xml @@ -36,6 +36,13 @@ + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + diff --git a/ant/pom.xml b/ant/pom.xml index bd47327910b..88ad235afe8 100644 --- a/ant/pom.xml +++ b/ant/pom.xml @@ -25,6 +25,14 @@ Ant build support error_prone_ant + + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + org.apache.ant diff --git a/ant/src/main/java/com/google/errorprone/ErrorProneExternalCompilerAdapter.java b/ant/src/main/java/com/google/errorprone/ErrorProneExternalCompilerAdapter.java index 5ea21e5d6b5..deb6eb22ecc 100644 --- a/ant/src/main/java/com/google/errorprone/ErrorProneExternalCompilerAdapter.java +++ b/ant/src/main/java/com/google/errorprone/ErrorProneExternalCompilerAdapter.java @@ -98,10 +98,14 @@ public boolean execute() throws BuildException { } cmd.createArgument().setValue(ErrorProneCompiler.class.getName()); + // This is the first argument that may be spilled to a file. + // The ant API describes it as the first argument which is a + // file, but in fact only uses it for spilling. Putting the + // break here allows long classpath arguments to be handled. + int firstSpillableArgument = cmd.size(); setupModernJavacCommandlineSwitches(cmd); - int firstFile = cmd.size(); logAndAddFilesToCompile(cmd); - return executeExternalCompile(cmd.getCommandline(), firstFile, true) == 0; + return executeExternalCompile(cmd.getCommandline(), firstSpillableArgument, true) == 0; } else { attributes.log( "You must set fork=\"yes\" to use the external Error Prone compiler", Project.MSG_ERR); diff --git a/check_api/pom.xml b/check_api/pom.xml index 4f8aa99df67..589c5acc411 100644 --- a/check_api/pom.xml +++ b/check_api/pom.xml @@ -37,6 +37,13 @@ error-prone check api error_prone_check_api + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + diff --git a/core/pom.xml b/core/pom.xml index 4553a3ac80a..8cea25dce0c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -37,6 +37,13 @@ error-prone library error_prone_core + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + diff --git a/test_helpers/pom.xml b/test_helpers/pom.xml index 0351014069c..aaf684508f6 100644 --- a/test_helpers/pom.xml +++ b/test_helpers/pom.xml @@ -37,6 +37,13 @@ error-prone test helpers error_prone_test_helpers + + + Apache 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + +