Skip to content
Catch common Java mistakes as compile-time errors
Branch: master
Clone or download
Latest commit fe2e3cc Apr 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github ISSUE_TEMPLATE v2 Nov 13, 2018
.idea Check in google-java-format IntelliJ configuration Nov 14, 2018
annotation [maven-release-plugin] prepare for next development iteration Feb 22, 2019
annotations Open-source @DoNotMock Apr 18, 2019
check_api Fix for error-prone AutoValueFinalMethods warning Apr 18, 2019
core Fix protos Apr 18, 2019
docgen [maven-release-plugin] prepare for next development iteration Feb 22, 2019
docgen_processor [maven-release-plugin] prepare for next development iteration Feb 22, 2019
examples Update Gradle plugin check example Apr 18, 2019
test_helpers Clean up description creation Apr 18, 2019
type_annotations [maven-release-plugin] prepare for next development iteration Feb 22, 2019
util Don't delete orphaned bugpattern markdown files. Apr 16, 2018
.gitignore Remove redundant calls to `String.toString()` Jul 6, 2017
AUTHORS Add String.split check, and make all existing code pass it Dec 21, 2017
WORKSPACE Initial bazel build Apr 18, 2015
appveyor.yml Don't notify on appveyor build success Nov 16, 2016
pom.xml Fix handling of test protos Apr 18, 2019

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.remove(i - 1);
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);
1 error

Getting Started

Our documentation is at

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.


You can’t perform that action at this time.