GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google/error-prone: Catch common Java mistakes as compile-time errors

BranchesTags
Open more actions menu

Latest commit

 

History

7,691 Commits
7,691 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
annotation
annotation
 
 
annotations
annotations
 
 
check_api
check_api
 
 
core
core
 
 
docgen
docgen
 
 
docgen_processor
docgen_processor
 
 
docs/bugpattern
docs/bugpattern
 
 
examples/plugin/bazel
examples/plugin/bazel
 
 
refaster
refaster
 
 
test_helpers
test_helpers
 
 
type_annotations
type_annotations
 
 
util
util
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AUTHORS
AUTHORS
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
COPYING
COPYING
 
 
KEYS.txt
KEYS.txt
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
bnd.bnd
bnd.bnd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

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 https://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

  • Mailing lists
    • General discussion
    • Announcements
  • Javadoc
  • Pre-release snapshots are available from Sonatype's snapshot repository (https://central.sonatype.com/repository/maven-snapshots/)

About

Catch common Java mistakes as compile-time errors

errorprone.info

Topics

javastatic-analysis

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

7.3k stars

Watchers

148 watching

Forks

836 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.