Skip to content

Update errorprone packages to v2.49.0#2759

Merged
laurit merged 3 commits intomainfrom
renovate/errorprone-packages
Apr 16, 2026
Merged

Update errorprone packages to v2.49.0#2759
laurit merged 3 commits intomainfrom
renovate/errorprone-packages

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 14, 2026

This PR contains the following updates:

Package Change Age Confidence
com.google.errorprone:error_prone_test_helpers (source) 2.48.02.49.0 age confidence
com.google.errorprone:error_prone_core (source) 2.48.02.49.0 age confidence
com.google.errorprone:error_prone_annotations (source) 2.48.02.49.0 age confidence

Release Notes

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

v2.49.0: Error Prone 2.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: google/error-prone@v2.48.0...v2.49.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 07:59 AM, only on Tuesday (* 0-7 * * 2)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates 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 Apr 14, 2026
@renovate renovate Bot requested a review from a team as a code owner April 14, 2026 00:26
Copilot AI review requested due to automatic review settings April 14, 2026 00:26
@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Apr 14, 2026
@renovate renovate Bot review requested due to automatic review settings April 14, 2026 00:26
Copilot AI review requested due to automatic review settings April 14, 2026 08:04
@renovate renovate Bot force-pushed the renovate/errorprone-packages branch from ff7e4a5 to 619391e Compare April 14, 2026 08:04
@renovate renovate Bot review requested due to automatic review settings April 14, 2026 08:04
Copilot AI review requested due to automatic review settings April 14, 2026 08:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s Error Prone toolchain to v2.49.0 and adjusts a couple of code locations to align with updated Error Prone APIs/checks.

Changes:

  • Bump com.google.errorprone dependencies from 2.48.0 to 2.49.0 in the dependency management platform.
  • Fix null-check logic in GoogleJibBuildHandler for Jib plugin configuration nodes.
  • Update SamplingProfiler Javadoc reference to match the updated CallTree#spanify(...) signature.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
dependencyManagement/build.gradle.kts Updates Error Prone artifacts to 2.49.0.
maven-extension/.../GoogleJibBuildHandler.java Corrects null checks for to and to/image nodes.
inferred-spans/.../SamplingProfiler.java Updates Javadoc method signature reference; adds BiConsumer import (currently problematic).

Comment on lines 47 to 48
import java.util.function.BiConsumer;
import java.util.function.Supplier;
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BiConsumer is imported but only referenced in a Javadoc {@linkplain ...} method signature. Since the build enables -Xlint:all and -Werror, this unused import will fail compilation. Remove the import and either fully-qualify the type in the Javadoc link (e.g., java.util.function.BiConsumer) or change the link to avoid embedding the full signature.

Copilot uses AI. Check for mistakes.
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Apr 14, 2026

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@trask trask added this pull request to the merge queue Apr 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026
@trask trask added this pull request to the merge queue Apr 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Apr 15, 2026
@laurit laurit added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit c91af93 Apr 16, 2026
35 of 37 checks passed
@laurit laurit deleted the renovate/errorprone-packages branch April 16, 2026 07:31
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.

2 participants