Skip to content

Commit 448fd51

Browse files
Bump error-prone from 2.52.0 to 2.53.0 (#559)
Bumps `error-prone` from 2.52.0 to 2.53.0. Updates `com.google.errorprone:error_prone_annotations` from 2.52.0 to 2.53.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/google/error-prone/releases">com.google.errorprone:error_prone_annotations's releases</a>.</em></p> <blockquote> <h2>Error Prone 2.53.0</h2> <p>New checks:</p> <ul> <li><a href="https://errorprone.info/bugpattern/BootclasspathShadowing"><code>BootclasspathShadowing</code></a>: Flag top-level class declarations whose binary name shadows a platform or bootclasspath type (disabled by default).</li> <li><a href="https://errorprone.info/bugpattern/DiscouragedHashKey"><code>DiscouragedHashKey</code></a>: Configurable check for hash-based containers keyed on types (or their subtypes) specified via <code>-XepOpt:DiscouragedHashKey:Types</code> (no-op unless configured).</li> </ul> <p>Other changes:</p> <ul> <li><a href="https://errorprone.info/bugpattern/EqualsHashCode"><code>EqualsHashCode</code></a>: Flag classes that override <code>hashCode</code> without overriding <code>equals</code>, gated by <code>-XepOpt:EqualsHashCode:CheckHashCodeWithoutEquals</code> (enabled by default) (<a href="https://redirect.github.com/google/error-prone/issues/129">#129</a>).</li> <li><a href="https://errorprone.info/bugpattern/MustBeClosedChecker"><code>MustBeClosedChecker</code></a>: Enforce <code>@MustBeClosed</code> on method and constructor references.</li> <li><a href="https://errorprone.info/bugpattern/URLEqualsHashCode"><code>URLEqualsHashCode</code></a>: Rebuild on the shared equality and hash-key analysis engine to also check <code>Multimap</code>, <code>Multiset</code>, <code>Stream.collect</code>, direct equality, assertions, and containment, while ignoring identity and sorted containers.</li> <li><a href="https://errorprone.info/bugpattern/ImpossibleNullComparison"><code>ImpossibleNullComparison</code></a>: Flag impossible null comparisons via <code>Objects.equals</code>, <code>Objects.isNull</code>, and <code>Objects.nonNull</code>.</li> <li><a href="https://errorprone.info/bugpattern/TruthIncompatibleType"><code>TruthIncompatibleType</code></a>: Check Guava <code>Table</code> assertions.</li> <li><a href="https://errorprone.info/bugpattern/PatternMatchingInstanceof"><code>PatternMatchingInstanceof</code></a>: Suggest <code>instanceof Foo&lt;?&gt; foo</code> for raw <code>instanceof Foo</code> checks.</li> <li><a href="https://errorprone.info/bugpattern/CompileTimeConstant"><code>CompileTimeConstant</code></a>: Recognize Guava <code>ImmutableMap.of</code>, <code>ImmutableMultiset.of</code>, <code>ImmutableSortedSet.of</code>, and <code>ImmutableSortedMap.of</code>, as well as JDK <code>List.of</code>, <code>Set.of</code>, and <code>Map.of</code>.</li> <li><a href="https://errorprone.info/bugpattern/Immutable"><code>Immutable</code></a>: Add Gson and Guava <code>TypeToken</code> to <code>WellKnownMutability</code>, and stop caching negative symbol and type lookups across a compilation unit so lazily completed supertypes are resolved reliably.</li> <li><a href="https://errorprone.info/bugpattern/PreconditionsCheckNotNullRepeated"><code>PreconditionsCheckNotNullRepeated</code></a>: Also check Guava's <code>Verify.verifyNotNull</code>.</li> <li><a href="https://errorprone.info/bugpattern/LambdaFunctionalInterface"><code>LambdaFunctionalInterface</code></a>: Only match <code>Integer</code>, <code>Long</code>, and <code>Double</code> type arguments instead of all <code>Number</code> subtypes.</li> <li><a href="https://errorprone.info/bugpattern/EqualsIncompatibleType"><code>EqualsIncompatibleType</code></a> / <code>TypeCompatibility</code>: Avoid false positives with incomplete classpaths.</li> <li><a href="https://errorprone.info/bugpattern/LoopConditionChecker"><code>LoopConditionChecker</code></a> / <a href="https://errorprone.info/bugpattern/TimeUnitConversionChecker"><code>TimeUnitConversionChecker</code></a> / <a href="https://errorprone.info/bugpattern/InlineTrivialConstant"><code>InlineTrivialConstant</code></a> / <a href="https://errorprone.info/bugpattern/NonAtomicVolatileUpdate"><code>NonAtomicVolatileUpdate</code></a>: Recognize compile-time constants in loop conditions (<a href="https://redirect.github.com/google/error-prone/issues/5826">#5826</a>) and <code>TimeUnit</code> conversions (<a href="https://redirect.github.com/google/error-prone/issues/6279">#6279</a>), and unwrap parenthesized expressions in <code>InlineTrivialConstant</code> (<a href="https://redirect.github.com/google/error-prone/issues/6217">#6217</a>) and <code>NonAtomicVolatileUpdate</code> (<a href="https://redirect.github.com/google/error-prone/issues/6214">#6214</a>).</li> <li><a href="https://errorprone.info/bugpattern/StatementSwitchToExpressionSwitch"><code>StatementSwitchToExpressionSwitch</code></a> / <a href="https://errorprone.info/bugpattern/IfChainToSwitch"><code>IfChainToSwitch</code></a>: Fix dead-code deletion after <code>return switch</code> and consolidate reachability handling.</li> <li>Performance: Evaluate <code>MethodMatchers</code> constraints in selectivity order, optimize <code>SuppressionInfo</code>, and reduce per-call overhead across <code>CheckReturnValue</code>, <code>DoNotCall</code>, <code>ParameterName</code>, <code>UnusedMethod</code>, <code>AlmostJavadoc</code>, and several other checks.</li> <li>Check API: Validate package names with <code>SourceVersion.isName</code> in <code>Matchers.packageStartsWith</code>, and document that <code>ASTHelpers.getSymbol(Tree)</code> returns <code>null</code> for parenthesized expressions (<a href="https://redirect.github.com/google/error-prone/issues/6223">#6223</a>).</li> </ul> <p>Closed issues: <a href="https://redirect.github.com/google/error-prone/issues/5826">#5826</a>, <a href="https://redirect.github.com/google/error-prone/issues/6214">#6214</a>, <a href="https://redirect.github.com/google/error-prone/issues/6217">#6217</a>, <a href="https://redirect.github.com/google/error-prone/issues/6223">#6223</a>, <a href="https://redirect.github.com/google/error-prone/issues/6279">#6279</a></p> <p>Full changelog: <a href="https://github.com/google/error-prone/compare/v2.52.0...v2.53.0">https://github.com/google/error-prone/compare/v2.52.0...v2.53.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/google/error-prone/commit/5c3574f9d796d44b95154b865d268f102104a015"><code>5c3574f</code></a> Release Error Prone 2.53.0</li> <li><a href="https://github.com/google/error-prone/commit/8138d15d8204c1b9f04caa888f706e7b0bd25635"><code>8138d15</code></a> Fix NPE in PatternMatchingInstanceof on type variables and raw arrays</li> <li><a href="https://github.com/google/error-prone/commit/496e723f03f60e56fefe9860849ef54a1799214b"><code>496e723</code></a> Avoid <code>TypeCompatibility</code> false positives with incomplete classpaths.</li> <li><a href="https://github.com/google/error-prone/commit/b8bf6ba8f7f5af5544e517162b32456e1afadd24"><code>b8bf6ba</code></a> Ignore explicit constructor invocations in `UnusedReturnValueMatcher.isReturn...</li> <li><a href="https://github.com/google/error-prone/commit/c9bbbdb97e9e64801dfd910fd586bddfba126f99"><code>c9bbbdb</code></a> Reject invalid package names in Matchers.packageStartsWith</li> <li><a href="https://github.com/google/error-prone/commit/e14c5e601037c22c9f1517934768891c877d2fb0"><code>e14c5e6</code></a> Make TruthIncompatibleType check <code>Table</code> assertions.</li> <li><a href="https://github.com/google/error-prone/commit/beb8f899f3f1b9633e7bb2b00cc04044953f32f9"><code>beb8f89</code></a> Bump org.checkerframework:checker-qual from 4.3.1 to 4.4.0 in the dependencie...</li> <li><a href="https://github.com/google/error-prone/commit/f72c29da0eb4b0028294b3e93a9ab1bebb60612a"><code>f72c29d</code></a> Flag impossible null comparisons via <code>Objects.equals</code>, <code>isNull</code>, and <code>nonNull</code>.</li> <li><a href="https://github.com/google/error-prone/commit/d96ec281cd9c588b771a7ab69ad8a7dd2c503e0a"><code>d96ec28</code></a> Fix some bugs in <code>isLikelyToBePublicApi</code>.</li> <li><a href="https://github.com/google/error-prone/commit/fb56246c8fb2ff50029d81dd14ec94e6e016607f"><code>fb56246</code></a> Only match Integer, Long, and Double in LambdaFunctionalInterface.</li> <li>Additional commits viewable in <a href="https://github.com/google/error-prone/compare/v2.52.0...v2.53.0">compare view</a></li> </ul> </details> <br /> Updates `com.google.errorprone:error_prone_core` from 2.52.0 to 2.53.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/google/error-prone/releases">com.google.errorprone:error_prone_core's releases</a>.</em></p> <blockquote> <h2>Error Prone 2.53.0</h2> <p>New checks:</p> <ul> <li><a href="https://errorprone.info/bugpattern/BootclasspathShadowing"><code>BootclasspathShadowing</code></a>: Flag top-level class declarations whose binary name shadows a platform or bootclasspath type (disabled by default).</li> <li><a href="https://errorprone.info/bugpattern/DiscouragedHashKey"><code>DiscouragedHashKey</code></a>: Configurable check for hash-based containers keyed on types (or their subtypes) specified via <code>-XepOpt:DiscouragedHashKey:Types</code> (no-op unless configured).</li> </ul> <p>Other changes:</p> <ul> <li><a href="https://errorprone.info/bugpattern/EqualsHashCode"><code>EqualsHashCode</code></a>: Flag classes that override <code>hashCode</code> without overriding <code>equals</code>, gated by <code>-XepOpt:EqualsHashCode:CheckHashCodeWithoutEquals</code> (enabled by default) (<a href="https://redirect.github.com/google/error-prone/issues/129">#129</a>).</li> <li><a href="https://errorprone.info/bugpattern/MustBeClosedChecker"><code>MustBeClosedChecker</code></a>: Enforce <code>@MustBeClosed</code> on method and constructor references.</li> <li><a href="https://errorprone.info/bugpattern/URLEqualsHashCode"><code>URLEqualsHashCode</code></a>: Rebuild on the shared equality and hash-key analysis engine to also check <code>Multimap</code>, <code>Multiset</code>, <code>Stream.collect</code>, direct equality, assertions, and containment, while ignoring identity and sorted containers.</li> <li><a href="https://errorprone.info/bugpattern/ImpossibleNullComparison"><code>ImpossibleNullComparison</code></a>: Flag impossible null comparisons via <code>Objects.equals</code>, <code>Objects.isNull</code>, and <code>Objects.nonNull</code>.</li> <li><a href="https://errorprone.info/bugpattern/TruthIncompatibleType"><code>TruthIncompatibleType</code></a>: Check Guava <code>Table</code> assertions.</li> <li><a href="https://errorprone.info/bugpattern/PatternMatchingInstanceof"><code>PatternMatchingInstanceof</code></a>: Suggest <code>instanceof Foo&lt;?&gt; foo</code> for raw <code>instanceof Foo</code> checks.</li> <li><a href="https://errorprone.info/bugpattern/CompileTimeConstant"><code>CompileTimeConstant</code></a>: Recognize Guava <code>ImmutableMap.of</code>, <code>ImmutableMultiset.of</code>, <code>ImmutableSortedSet.of</code>, and <code>ImmutableSortedMap.of</code>, as well as JDK <code>List.of</code>, <code>Set.of</code>, and <code>Map.of</code>.</li> <li><a href="https://errorprone.info/bugpattern/Immutable"><code>Immutable</code></a>: Add Gson and Guava <code>TypeToken</code> to <code>WellKnownMutability</code>, and stop caching negative symbol and type lookups across a compilation unit so lazily completed supertypes are resolved reliably.</li> <li><a href="https://errorprone.info/bugpattern/PreconditionsCheckNotNullRepeated"><code>PreconditionsCheckNotNullRepeated</code></a>: Also check Guava's <code>Verify.verifyNotNull</code>.</li> <li><a href="https://errorprone.info/bugpattern/LambdaFunctionalInterface"><code>LambdaFunctionalInterface</code></a>: Only match <code>Integer</code>, <code>Long</code>, and <code>Double</code> type arguments instead of all <code>Number</code> subtypes.</li> <li><a href="https://errorprone.info/bugpattern/EqualsIncompatibleType"><code>EqualsIncompatibleType</code></a> / <code>TypeCompatibility</code>: Avoid false positives with incomplete classpaths.</li> <li><a href="https://errorprone.info/bugpattern/LoopConditionChecker"><code>LoopConditionChecker</code></a> / <a href="https://errorprone.info/bugpattern/TimeUnitConversionChecker"><code>TimeUnitConversionChecker</code></a> / <a href="https://errorprone.info/bugpattern/InlineTrivialConstant"><code>InlineTrivialConstant</code></a> / <a href="https://errorprone.info/bugpattern/NonAtomicVolatileUpdate"><code>NonAtomicVolatileUpdate</code></a>: Recognize compile-time constants in loop conditions (<a href="https://redirect.github.com/google/error-prone/issues/5826">#5826</a>) and <code>TimeUnit</code> conversions (<a href="https://redirect.github.com/google/error-prone/issues/6279">#6279</a>), and unwrap parenthesized expressions in <code>InlineTrivialConstant</code> (<a href="https://redirect.github.com/google/error-prone/issues/6217">#6217</a>) and <code>NonAtomicVolatileUpdate</code> (<a href="https://redirect.github.com/google/error-prone/issues/6214">#6214</a>).</li> <li><a href="https://errorprone.info/bugpattern/StatementSwitchToExpressionSwitch"><code>StatementSwitchToExpressionSwitch</code></a> / <a href="https://errorprone.info/bugpattern/IfChainToSwitch"><code>IfChainToSwitch</code></a>: Fix dead-code deletion after <code>return switch</code> and consolidate reachability handling.</li> <li>Performance: Evaluate <code>MethodMatchers</code> constraints in selectivity order, optimize <code>SuppressionInfo</code>, and reduce per-call overhead across <code>CheckReturnValue</code>, <code>DoNotCall</code>, <code>ParameterName</code>, <code>UnusedMethod</code>, <code>AlmostJavadoc</code>, and several other checks.</li> <li>Check API: Validate package names with <code>SourceVersion.isName</code> in <code>Matchers.packageStartsWith</code>, and document that <code>ASTHelpers.getSymbol(Tree)</code> returns <code>null</code> for parenthesized expressions (<a href="https://redirect.github.com/google/error-prone/issues/6223">#6223</a>).</li> </ul> <p>Closed issues: <a href="https://redirect.github.com/google/error-prone/issues/5826">#5826</a>, <a href="https://redirect.github.com/google/error-prone/issues/6214">#6214</a>, <a href="https://redirect.github.com/google/error-prone/issues/6217">#6217</a>, <a href="https://redirect.github.com/google/error-prone/issues/6223">#6223</a>, <a href="https://redirect.github.com/google/error-prone/issues/6279">#6279</a></p> <p>Full changelog: <a href="https://github.com/google/error-prone/compare/v2.52.0...v2.53.0">https://github.com/google/error-prone/compare/v2.52.0...v2.53.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/google/error-prone/commit/5c3574f9d796d44b95154b865d268f102104a015"><code>5c3574f</code></a> Release Error Prone 2.53.0</li> <li><a href="https://github.com/google/error-prone/commit/8138d15d8204c1b9f04caa888f706e7b0bd25635"><code>8138d15</code></a> Fix NPE in PatternMatchingInstanceof on type variables and raw arrays</li> <li><a href="https://github.com/google/error-prone/commit/496e723f03f60e56fefe9860849ef54a1799214b"><code>496e723</code></a> Avoid <code>TypeCompatibility</code> false positives with incomplete classpaths.</li> <li><a href="https://github.com/google/error-prone/commit/b8bf6ba8f7f5af5544e517162b32456e1afadd24"><code>b8bf6ba</code></a> Ignore explicit constructor invocations in `UnusedReturnValueMatcher.isReturn...</li> <li><a href="https://github.com/google/error-prone/commit/c9bbbdb97e9e64801dfd910fd586bddfba126f99"><code>c9bbbdb</code></a> Reject invalid package names in Matchers.packageStartsWith</li> <li><a href="https://github.com/google/error-prone/commit/e14c5e601037c22c9f1517934768891c877d2fb0"><code>e14c5e6</code></a> Make TruthIncompatibleType check <code>Table</code> assertions.</li> <li><a href="https://github.com/google/error-prone/commit/beb8f899f3f1b9633e7bb2b00cc04044953f32f9"><code>beb8f89</code></a> Bump org.checkerframework:checker-qual from 4.3.1 to 4.4.0 in the dependencie...</li> <li><a href="https://github.com/google/error-prone/commit/f72c29da0eb4b0028294b3e93a9ab1bebb60612a"><code>f72c29d</code></a> Flag impossible null comparisons via <code>Objects.equals</code>, <code>isNull</code>, and <code>nonNull</code>.</li> <li><a href="https://github.com/google/error-prone/commit/d96ec281cd9c588b771a7ab69ad8a7dd2c503e0a"><code>d96ec28</code></a> Fix some bugs in <code>isLikelyToBePublicApi</code>.</li> <li><a href="https://github.com/google/error-prone/commit/fb56246c8fb2ff50029d81dd14ec94e6e016607f"><code>fb56246</code></a> Only match Integer, Long, and Double in LambdaFunctionalInterface.</li> <li>Additional commits viewable in <a href="https://github.com/google/error-prone/compare/v2.52.0...v2.53.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent fb4a3fe commit 448fd51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎gradle/libs.versions.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
assertj = "3.27.7"
33
buf = "1.75.0"
44
cel = "0.15.0"
5-
error-prone = "2.52.0"
5+
error-prone = "2.53.0"
66
junit = "5.14.4"
77
maven-publish = "0.37.0"
88
protobuf = "4.36.2"

0 commit comments

Comments
 (0)