error-prone 0,1,4,1,2,0,3 travis-ci

Catch common Java mistakes as compile-time errors

2 years after Apache-2.0

Error Prone

Error Prone is a static analysis tool for Java that catches common programming mistakes at compile-time.

public class ShortSet {
  public static void main (String[] args) {
    Set<Short> 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.

Error Prone works with Bazel, Maven, Ant, and Gradle. See our installation instructions for details.

Developing Error Prone

Developing and building Error Prone is documented on the wiki.

Links

Related Repositories

UIFontComplete

UIFontComplete

Make working with UIFont faster and less error-prone. ...

prone

prone

Better exception reporting middleware for Ring. ...

gradle-errorprone-plugin

gradle-errorprone-plugin

Gradle plugin to use the error-prone compiler for Java ...

zproto

zproto

A protocol framework for ZeroMQ ...

Effective-JAVA-Summary

Effective-JAVA-Summary

Summary of the book Effective Java 2nd Edition by Joshua Bloch ...


Top Contributors

cushon eaftan alexeagle cpovirk lowasser nglorioso sgoldfed sjnickerson billpugh mdempsky arnaudvenet gk5885 supertriceratops sumitbhagwani michaeledgar amshali rburny kevin1e100 adamwos garricko cgdecker dawasser yulissaa kluever netdpb dagar awturner captain5050 sameb aragos

Releases

-   v2.0.13 zip tar
-   v2.0.11 zip tar
-   v2.0.10 zip tar
-   v2.0.9 zip tar
-   v2.0.8 zip tar
-   v2.0.7 zip tar
-   v2.0.6 zip tar
-   v2.0.5 zip tar
-   v2.0.4 zip tar
-   v2.0.3 zip tar
-   v2.0.2 zip tar
-   v2.0.1 zip tar
-   v2.0 zip tar
-   2.0.12 zip tar