New checks:
InterruptedInCatchBlock: Detect accidental calls toThread.interrupted()inside ofcatch(InterruptedException e)blocks.RefactorSwitch: Refactorings to simplify arrow switchesUnnamedVariable: Rena...
Unclaimed project
Are you a maintainer of error-prone? Claim this project to take control of your public changelog and roadmap.
New checks:
InterruptedInCatchBlock: Detect accidental calls to Thread.interrupted() inside of catch(InterruptedException e) blocks.RefactorSwitch: Refactorings to simplify arrow switchesUnnamedVariable: Rena...Changes:
-XDaddTypeAnnotationsToSymbol=true is now required for Error Prone invocations on JDK 21, to enable the javac fix for JDK-8225377: type annotations are not visible to javac plugins across compilation boundaries. See https://github.com/google/error-prone/issues/5426 for details.value attribute from...Changes:
New checks:
AssertSameIncompatible: Detect calls to assertSame and similar assertions, where the calls are guaranteed to either succeed or fail.FormatStringShouldUsePlaceholders: Sug...Changes
LabelledBreakTarget is now an errorClosed issues: #5218, #5278
Full changelog: https://github.com/google/error-prone/compare/v2.43.0...v2.44.0
The minimum supported JDK version to run Error Prone is now JDK 21 (https://github.com/google/error-prone/issues/4867).
Changes:
-XepPatchChecks now skips disabled checks (#4943)AndroidJdkLibsChecker has been removed, the recommended replacement for Android code is Android Lint's NewApi checkNew checks:
NullNeedsCastForVarargs](https://errorprone.info/bugpattern/NullN...