Update google.errorprone to v2.45.0
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| com.google.errorprone:error_prone_core (source) | dependencies | minor | 2.41.0 -> 2.45.0 |
| com.google.errorprone:error_prone_annotations (source) | dependencies | minor | 2.41.0 -> 2.45.0 |
Release Notes
google/error-prone (com.google.errorprone:error_prone_core)
v2.45.0: Error Prone 2.45.0
Changes:
- Improved compatibility with latest JDK 26 EA builds.
New checks:
-
AssertSameIncompatible: Detect calls toassertSameand similar assertions, where the calls are guaranteed to either succeed or fail. -
FormatStringShouldUsePlaceholders: Suggests using a format string instead of string concatenation operations on format methods
Closed issues: #5335
Full changelog: https://github.com/google/error-prone/compare/v2.44.0...v2.45.0
v2.44.0: Error Prone 2.44.0
Changes
- The default severity for
LabelledBreakTargetis now an error - Update dependency on Guava (#5108)
Full changelog: https://github.com/google/error-prone/compare/v2.43.0...v2.44.0
v2.43.0: Error Prone 2.43.0
The minimum supported JDK version to run Error Prone is now JDK 21 (#4867).
Changes:
-
-XepPatchChecksnow skips disabled checks (#4943) -
AndroidJdkLibsCheckerhas been removed, the recommended replacement for Android code is Android Lint's NewApi check
New checks:
-
NullNeedsCastForVarargs: Detect calls that incorrectly passes anullarray instead of anullelement. -
RedundantNullCheck: detect checks on expressions that are non-null.
Closed issues: #4943, #5102, #5107, #5121, #5158, #5217, #5239
Full changelog: https://github.com/google/error-prone/compare/v2.42.0...v2.43.0
v2.42.0: Error Prone 2.42.0
New checks:
-
ExplicitArrayForVarargs: discourage unnecessary explicit construction of an array to provide varargs. -
FloggerPerWithoutRateLimit: discourage Flogger'sperUniquewithout rate limiting -
StringJoin: BanString.join(CharSequence)andString.join(CharSequence, CharSequence) -
ThreadBuilderNameWithPlaceholder: Do not allow placeholders inThread.Builder.name(String)orname(String, int).
Changes:
- The return type of
ASTHelpers.asFlagSethas changed. The previous type wasEnumSet<Flags.Flag>, whereFlags.Flagis an enum in the javac classFlags. A recent JDK change has replaced that enum with a new top-level enum calledFlagsEnum. It is not possible to changeASTHelpers.asFlagSetin a way that would be type-safe and compatible with the enums from JDKs both before and after the change. Instead, the method now returnsImmutableSet<String>, where the strings come from thetoString()of the enum constants. That means they are"native","abstract", etc. - Flag
IO.print[ln]()inSystemOut.
Full changelog: https://github.com/google/error-prone/compare/v2.41.0...v2.42.0
Configuration
📅 Schedule: Branch creation - Every minute ( * * * * * ) (UTC), 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 has been generated by Renovate Bot