GitHub 火線榜

GitHub 火線榜 · 倉庫檔案

google/error-prone

Catch common Java mistakes as compile-time errors (簡介來自倉庫自身文件。)

資料截至 October 25google

最好成績

#380

總榜 · Java 分面

7.3K

累計 Star

829

Fork 總數

0

近 30 天在榜天數

專案狀態授權條款: Apache-2.0最近 push: October 25Open 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-TW/repo/google/error-prone)
<a href="https://git.vaiox.xyz/zh-TW/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 天沒有上榜紀錄。

同類專案 · 共享主題

← 回到榜單