Skip to content

Commit 60713bf

Browse files
chore(deps): update dependency com.google.errorprone:error_prone_core to v2.53.0 (#2731)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [com.google.errorprone:error_prone_core](https://errorprone.info) ([source](https://redirect.github.com/google/error-prone)) | `2.51.0` → `2.53.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.errorprone:error_prone_core/2.53.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.errorprone:error_prone_core/2.51.0/2.53.0?slim=true) | --- ### Release Notes <details> <summary>google/error-prone (com.google.errorprone:error_prone_core)</summary> ### [`v2.53.0`](https://redirect.github.com/google/error-prone/releases/tag/v2.53.0): Error Prone 2.53.0 New checks: - [`BootclasspathShadowing`](https://errorprone.info/bugpattern/BootclasspathShadowing): Flag top-level class declarations whose binary name shadows a platform or bootclasspath type (disabled by default). - [`DiscouragedHashKey`](https://errorprone.info/bugpattern/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`](https://errorprone.info/bugpattern/EqualsHashCode): Flag classes that override `hashCode` without overriding `equals`, gated by `-XepOpt:EqualsHashCode:CheckHashCodeWithoutEquals` (enabled by default) ([#&#8203;129](https://redirect.github.com/google/error-prone/issues/129)). - [`MustBeClosedChecker`](https://errorprone.info/bugpattern/MustBeClosedChecker): Enforce `@MustBeClosed` on method and constructor references. - [`URLEqualsHashCode`](https://errorprone.info/bugpattern/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`](https://errorprone.info/bugpattern/ImpossibleNullComparison): Flag impossible null comparisons via `Objects.equals`, `Objects.isNull`, and `Objects.nonNull`. - [`TruthIncompatibleType`](https://errorprone.info/bugpattern/TruthIncompatibleType): Check Guava `Table` assertions. - [`PatternMatchingInstanceof`](https://errorprone.info/bugpattern/PatternMatchingInstanceof): Suggest `instanceof Foo<?> foo` for raw `instanceof Foo` checks. - [`CompileTimeConstant`](https://errorprone.info/bugpattern/CompileTimeConstant): Recognize Guava `ImmutableMap.of`, `ImmutableMultiset.of`, `ImmutableSortedSet.of`, and `ImmutableSortedMap.of`, as well as JDK `List.of`, `Set.of`, and `Map.of`. - [`Immutable`](https://errorprone.info/bugpattern/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`](https://errorprone.info/bugpattern/PreconditionsCheckNotNullRepeated): Also check Guava's `Verify.verifyNotNull`. - [`LambdaFunctionalInterface`](https://errorprone.info/bugpattern/LambdaFunctionalInterface): Only match `Integer`, `Long`, and `Double` type arguments instead of all `Number` subtypes. - [`EqualsIncompatibleType`](https://errorprone.info/bugpattern/EqualsIncompatibleType) / `TypeCompatibility`: Avoid false positives with incomplete classpaths. - [`LoopConditionChecker`](https://errorprone.info/bugpattern/LoopConditionChecker) / [`TimeUnitConversionChecker`](https://errorprone.info/bugpattern/TimeUnitConversionChecker) / [`InlineTrivialConstant`](https://errorprone.info/bugpattern/InlineTrivialConstant) / [`NonAtomicVolatileUpdate`](https://errorprone.info/bugpattern/NonAtomicVolatileUpdate): Recognize compile-time constants in loop conditions ([#&#8203;5826](https://redirect.github.com/google/error-prone/issues/5826)) and `TimeUnit` conversions ([#&#8203;6279](https://redirect.github.com/google/error-prone/issues/6279)), and unwrap parenthesized expressions in `InlineTrivialConstant` ([#&#8203;6217](https://redirect.github.com/google/error-prone/issues/6217)) and `NonAtomicVolatileUpdate` ([#&#8203;6214](https://redirect.github.com/google/error-prone/issues/6214)). - [`StatementSwitchToExpressionSwitch`](https://errorprone.info/bugpattern/StatementSwitchToExpressionSwitch) / [`IfChainToSwitch`](https://errorprone.info/bugpattern/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 ([#&#8203;6223](https://redirect.github.com/google/error-prone/issues/6223)). Closed issues: [#&#8203;5826](https://redirect.github.com/google/error-prone/issues/5826), [#&#8203;6214](https://redirect.github.com/google/error-prone/issues/6214), [#&#8203;6217](https://redirect.github.com/google/error-prone/issues/6217), [#&#8203;6223](https://redirect.github.com/google/error-prone/issues/6223), [#&#8203;6279](https://redirect.github.com/google/error-prone/issues/6279) Full changelog: <google/error-prone@v2.52.0...v2.53.0> ### [`v2.52.0`](https://redirect.github.com/google/error-prone/releases/tag/v2.52.0): Error Prone 2.52.0 New checks: - [`AlmostExhaustiveTestParameter`](https://errorprone.info/bugpattern/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`](https://errorprone.info/bugpattern/SingleTestParameter): Suggest `@TestParameter` on the parameter instead of `@TestParameters` when there is only one test parameter, replacing `PreferTestParameter` (disabled by default). - [`SingleValueTestParameter`](https://errorprone.info/bugpattern/SingleValueTestParameter): Suggest replacing a `@TestParameter` that has only a single value with a local variable in the test method (disabled by default). - [`ValueClassEquals`](https://errorprone.info/bugpattern/ValueClassEquals): Require non-record concrete `value` classes to explicitly override `equals` and `hashCode`. Other changes: - [`LoopToTestParameter`](https://errorprone.info/bugpattern/LoopToTestParameter): Changed severity to `SUGGESTION` (disabled by default). - [`DistinctVarargsChecker`](https://errorprone.info/bugpattern/DistinctVarargsChecker): Allow duplicate arguments to `Iterables.concat` ([#&#8203;6239](https://redirect.github.com/google/error-prone/issues/6239)) and Mockito argument matchers such as `any()` ([#&#8203;6240](https://redirect.github.com/google/error-prone/issues/6240)). - [`UnusedVariable`](https://errorprone.info/bugpattern/UnusedVariable): Treat fields accessed via `MethodHandles.Lookup` (`VarHandle`/getter/setter lookups) or `Atomic*FieldUpdater.newUpdater` as used. - [`StringBuilderInitWithChar`](https://errorprone.info/bugpattern/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`](https://errorprone.info/bugpattern/CompileTimeConstant): Treat `record` and `interface` fields and field accesses on compile-time constants (`compileTimeConstant.compileTimeConstantField`) as compile-time constants. - [`ValueClassIdentity`](https://errorprone.info/bugpattern/ValueClassIdentity) / [`ReferenceEquality`](https://errorprone.info/bugpattern/ReferenceEquality): Handle JEP 401 `value` classes. - [`FieldCanBeFinal`](https://errorprone.info/bugpattern/FieldCanBeFinal) / [`ThreadSafety`](https://errorprone.info/bugpattern/ThreadSafety): Improve compile-time performance on large classes and deep type hierarchies, and update [SafeRE](https://redirect.github.com/eaftan/safere) to 1.1.0 ([#&#8203;6230](https://redirect.github.com/google/error-prone/issues/6230)). - Added [`ClassName`](https://redirect.github.com/google/error-prone/blob/master/check_api/src/main/java/com/google/errorprone/ClassName.java) for caching resolved `ClassSymbol`, `Type`, and binary `Name` lookups across a compilation. Closed issues: [#&#8203;5964](https://redirect.github.com/google/error-prone/issues/5964), [#&#8203;6165](https://redirect.github.com/google/error-prone/issues/6165), [#&#8203;6230](https://redirect.github.com/google/error-prone/issues/6230), [#&#8203;6239](https://redirect.github.com/google/error-prone/issues/6239), [#&#8203;6240](https://redirect.github.com/google/error-prone/issues/6240), [#&#8203;6275](https://redirect.github.com/google/error-prone/issues/6275) Full changelog: <google/error-prone@v2.51.0...v2.52.0> </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yNjIuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjI2Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent ffabc10 commit 60713bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@
477477
<path>
478478
<groupId>com.google.errorprone</groupId>
479479
<artifactId>error_prone_core</artifactId>
480-
<version>2.51.0</version>
480+
<version>2.53.0</version>
481481
</path>
482482
<path>
483483
<groupId>com.uber.nullaway</groupId>

0 commit comments

Comments
 (0)