GitHub 火线榜

GitHub 火线榜 · 仓库档案

google/error-prone

Catch common Java mistakes as compile-time errors (简介来自仓库自身文档。)

数据截至 10月26日google

最好成绩

#380

总榜 · Java 分面

7261

累计 Star

829

Fork 总数

0

近 30 天在榜天数

项目状态许可证: Apache-2.0最近 push: 10月25日Open Issues(含 PR): 561

自 2026-10-25 起采集;未知 = 尚未采集到

把上榜徽章放进你的 README · google/error-prone[![把上榜徽章放进你的 README](https://git.vaiox.xyz/api/badge/google/error-prone.svg)](https://git.vaiox.xyz/zh/repo/google/error-prone)
<a href="https://git.vaiox.xyz/zh/repo/google/error-prone"><img src="https://git.vaiox.xyz/api/badge/google/error-prone.svg" alt="把上榜徽章放进你的 README" height="20"></a>

项目文档

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

当前上榜

近 30 天势头

近 30 天没有上榜记录。

同类项目 · 共享主题

← 回到榜单