| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Error Prone 2.49.0 source code.tar.gz | 2026-04-07 | 2.2 MB | |
| Error Prone 2.49.0 source code.zip | 2026-04-07 | 4.4 MB | |
| README.md | 2026-04-07 | 2.1 kB | |
| Totals: 3 Items | 6.7 MB | 2 | |
This release includes several changes to Matcher APIs, and removed some deprecated or problematic APIs:
- Remove deprecated
MethodMatchers.withSignatureAPI, which relies on fragiletoStringbehaviour. Alternatives for matching on method signatures with varargs and type parameters were added in https://github.com/google/error-prone/commit/a98a1c55d92d343ae2c142485e8888cd46aa78b3. - Removed
variableType(Matcher)API.Matchers.variableType(Matcher)usesVariableTree#getTypeto match variable types, which own't work for lambda parameters with inferred types after JDK-8268850. The recommended replacement isvariableType(TypePredicate). - Make
enclosingPackagereturn an optional. Module elements are not enclosed by a package, checks usingenclosingPackageshouldn't assume an enclosing package exists when processing arbitrary elements. - New
FieldMatchersAPI, similar toMethodMatchers(https://github.com/google/error-prone/commit/1dd9c3a6bd76fca8104be6ae1c1004655d6a1745).
New checks:
AssertThrowsBlockToExpression: Discourage unnecessary block lambdas inassertThrows.AssertThrowsMinimizer: Suggest minimizing the amount of logic inassertThrows.MemorySegmentReferenceEquality: Discourage using reference equality forMemorySegments.PreferThrowsTag: Recommends using@throwsinstead of the legacy@exceptionjavadoc tag.RecordAccessorInCompactConstructor: detect record accessors inside the compact canonical ctors, which read uninitialized fields.
Closed issues: [#2283], [#3503], [#5210], [#5289], [#5548], [#5548], [#5554], [#5609], [#5614], [#5656]
Full changelog: https://github.com/google/error-prone/compare/v2.48.0...v2.49.0