Error Prone v2.50.0 Release Notes

Release Date: 2026-06-10 // 1 day ago

Previous changes from v2.49.0

  • 🚀 This release includes several changes to Matcher APIs, and removed some deprecated or problematic APIs:

    • ✂ Remove deprecated MethodMatchers.withSignature API, which relies on fragile toString behaviour. Alternatives for matching on method signatures with varargs and type parameters were added in a98a1c5.
    • ✂ Removed variableType(Matcher) API. Matchers.variableType(Matcher) uses VariableTree#getType to match variable types, which own't work for lambda parameters with inferred types after JDK-8268850. The recommended replacement is variableType(TypePredicate).
    • 📦 Make enclosingPackage return an optional. Module elements are not enclosed by a package, checks using enclosingPackage shouldn't assume an enclosing package exists when processing arbitrary elements.
    • 🆕 New FieldMatchers API, similar to MethodMatchers (1dd9c3a).

    🆕 New checks:

    Closed issues: #2283, #3503, #5210, #5289, #5548, #5548, #5554, #5609, #5614, #5656

    Full changelog: v2.48.0...v2.49.0