Skip to content

chore(deps): update dependency com.google.errorprone:error_prone_core to v2.53.0 - #2731

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/error-prone-monorepo
Nov 27, 2026
Merged

renovate[bot] merged 1 commit into
mainfrom
renovate/error-prone-monorepo

Conversation

@renovate

@renovate renovate Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
com.google.errorprone:error_prone_core (source) 2.51.0 → 2.53.0 age confidence

Release Notes

google/error-prone (com.google.errorprone:error_prone_core)

v2.53.0: Error Prone 2.53.0

New checks:

  • BootclasspathShadowing: Flag top-level class declarations whose binary name shadows a platform or bootclasspath type (disabled by default).
  • DiscouragedHashKey: Configurable check for hash-based containers keyed on types (or their subtypes) specified via -XepOpt:DiscouragedHashKey:Types (no-op unless configured).

Other changes:

  • EqualsHashCode: Flag classes that override hashCode without overriding equals, gated by -XepOpt:EqualsHashCode:CheckHashCodeWithoutEquals (enabled by default) (#​129).
  • MustBeClosedChecker: Enforce @MustBeClosed on method and constructor references.
  • URLEqualsHashCode: Rebuild on the shared equality and hash-key analysis engine to also check Multimap, Multiset, Stream.collect, direct equality, assertions, and containment, while ignoring identity and sorted containers.
  • ImpossibleNullComparison: Flag impossible null comparisons via Objects.equals, Objects.isNull, and Objects.nonNull.
  • TruthIncompatibleType: Check Guava Table assertions.
  • PatternMatchingInstanceof: Suggest instanceof Foo<?> foo for raw instanceof Foo checks.
  • CompileTimeConstant: Recognize Guava ImmutableMap.of, ImmutableMultiset.of, ImmutableSortedSet.of, and ImmutableSortedMap.of, as well as JDK List.of, Set.of, and Map.of.
  • Immutable: Add Gson and Guava TypeToken to WellKnownMutability, and stop caching negative symbol and type lookups across a compilation unit so lazily completed supertypes are resolved reliably.
  • PreconditionsCheckNotNullRepeated: Also check Guava's Verify.verifyNotNull.
  • LambdaFunctionalInterface: Only match Integer, Long, and Double type arguments instead of all Number subtypes.
  • EqualsIncompatibleType / TypeCompatibility: Avoid false positives with incomplete classpaths.
  • LoopConditionChecker / TimeUnitConversionChecker / InlineTrivialConstant / NonAtomicVolatileUpdate: Recognize compile-time constants in loop conditions (#​5826) and TimeUnit conversions (#​6279), and unwrap parenthesized expressions in InlineTrivialConstant (#​6217) and NonAtomicVolatileUpdate (#​6214).
  • StatementSwitchToExpressionSwitch / IfChainToSwitch: Fix dead-code deletion after return switch and consolidate reachability handling.
  • Performance: Evaluate MethodMatchers constraints in selectivity order, optimize SuppressionInfo, and reduce per-call overhead across CheckReturnValue, DoNotCall, ParameterName, UnusedMethod, AlmostJavadoc, and several other checks.
  • Check API: Validate package names with SourceVersion.isName in Matchers.packageStartsWith, and document that ASTHelpers.getSymbol(Tree) returns null for parenthesized expressions (#​6223).

Closed issues: #​5826, #​6214, #​6217, #​6223, #​6279

Full changelog: google/error-prone@v2.52.0...v2.53.0

v2.52.0: Error Prone 2.52.0

New checks:

  • AlmostExhaustiveTestParameter: Prefer an exhaustive @TestParameter with an assumption to filter out specific enum values, so newly added enum values are automatically tested (disabled by default).
  • SingleTestParameter: Suggest @TestParameter on the parameter instead of @TestParameters when there is only one test parameter, replacing PreferTestParameter (disabled by default).
  • SingleValueTestParameter: Suggest replacing a @TestParameter that has only a single value with a local variable in the test method (disabled by default).
  • ValueClassEquals: Require non-record concrete value classes to explicitly override equals and hashCode.

Other changes:

  • LoopToTestParameter: Changed severity to SUGGESTION (disabled by default).
  • DistinctVarargsChecker: Allow duplicate arguments to Iterables.concat (#​6239) and Mockito argument matchers such as any() (#​6240).
  • UnusedVariable: Treat fields accessed via MethodHandles.Lookup (VarHandle/getter/setter lookups) or Atomic*FieldUpdater.newUpdater as used.
  • StringBuilderInitWithChar / StringBuffer refactoring: Refactor StringBuffer to StringBuilder even when used with Matcher.appendReplacement and appendTail (when supported by the target JDK or Android minSdkVersion).
  • CompileTimeConstant: Treat record and interface fields and field accesses on compile-time constants (compileTimeConstant.compileTimeConstantField) as compile-time constants.
  • ValueClassIdentity / ReferenceEquality: Handle JEP 401 value classes.
  • FieldCanBeFinal / ThreadSafety: Improve compile-time performance on large classes and deep type hierarchies, and update SafeRE to 1.1.0 (#​6230).
  • Added ClassName for caching resolved ClassSymbol, Type, and binary Name lookups across a compilation.

Closed issues: #​5964, #​6165, #​6230, #​6239, #​6240, #​6275

Full changelog: google/error-prone@v2.51.0...v2.52.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Nov 26, 2026
@renovate
renovate Bot enabled auto-merge (squash) November 26, 2026 17:49
@renovate
renovate Bot merged commit 60713bf into main Nov 27, 2026
21 checks passed
@renovate
renovate Bot deleted the renovate/error-prone-monorepo branch November 27, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant