Bump errorProneVersion from 2.36.0 to 2.38.0
Bumps errorProneVersion from 2.36.0 to 2.38.0.
Updates com.google.errorprone:error_prone_annotations from 2.36.0 to 2.38.0
Release notes
Sourced from com.google.errorprone:error_prone_annotations's releases.
Error Prone 2.38.0
New checks:
AddNullMarkedToPackageInfo: adds@org.jspecify.annotations.NullMarkedannotation to package-info filesIntLiteralCast: Suggests a literal of the desired type instead of casting an int literal to a long, float, or doubleMisleadingEmptyVarargs: Discourages calling varargs methods that expect at least one argument with no arguments, like Mockito'sthenThrowPreconditionsExpensiveString: Discourages expensive string formatting in GuavaPreconditionschecksSelfSet: Detects mistakes likeproto.setFoo(proto.getFoo())UnnecessaryCopy: detect unnecessary copies of proto Lists and Maps.Closed issues: #4924, #4897, #4995
Full changelog: https://github.com/google/error-prone/compare/v2.37.0...v2.38.0
Error Prone 2.37.0
Changes:
- The annotations that were previously in
error_prone_type_annotationshave been been merged intoerror_prone_annotations.error_prone_type_annotationsis now deprecated, and will be removed in a future release.New checks:
AssignmentExpression- The use of an assignment expression can be surprising and hard to read; consider factoring out the assignment to a separate statement.IntFloatConversion- Detect calls toscalbthat should be using the double overload insteadInvalidSnippet- Detects snippets which omit the:required for inline code.JUnit4EmptyMethods- Detects empty JUnit4@Before,@After,@BeforeClass, and@AfterClassmethods.MockIllegalThrows- Detects cases where Mockito is configured to throw checked exception types which are impossible.NegativeBoolean- Prefer positive boolean names.RuleNotRun- DetectsTestRules not annotated with@Rule, that won't be run.StringConcatToTextBlock- Replaces concatenated multiline strings with text blocks.TimeInStaticInitializer- Detects accesses of the system time in static contexts.Closed issues:
- Propagate check flags in patch mode (#4699)
- Fixes a crash in ComputeIfAbsentAmbiguousReference (#4736)
- Show the field name in HidingField diagnostics (#4775)
- Add support for jakarta annotations to some checks (#4782)
- FloatingPointAssertionWithinEpsilonTest depends on default locale (#4815)
@InlineMepatching ofStrings.repeatproduces broken code (#4819)- Fix a crash in IdentifierName on unnamed (
_) variables (#4847)- Fix a crash in ArgumentParameterSwap (#490)
Full changelog: https://github.com/google/error-prone/compare/v2.36.0...v2.37.0
Commits
a07bd3eRelease Error Prone 2.38.009fd394Fix typo in NullTernary.md4171fd7FindIdentifiers: find binding variables declared by enclosing or earlierif...d78f515Audit each use of ElementKind.LOCAL_VARIABLE, and add BINDING_VARIABLE if app...6f94a97Tolerate default cases in switches as being present to handle version skew0223abbSupport@LenientFormatStringinLenientFormatStringValidation.cb7dfafRemove theSideenum.d64c9cePromote error prone check TestExceptionChecker to ERROR within Google (blaze ...c0ce475MoveTargetTypeto a top-level class alongsideASTHelpers.90b8efbAllow binding to BINDING_VARIABLEs in GuardedByBinder.- Additional commits viewable in compare view
Updates com.google.errorprone:error_prone_core from 2.36.0 to 2.38.0
Release notes
Sourced from com.google.errorprone:error_prone_core's releases.
Error Prone 2.38.0
New checks:
AddNullMarkedToPackageInfo: adds@org.jspecify.annotations.NullMarkedannotation to package-info filesIntLiteralCast: Suggests a literal of the desired type instead of casting an int literal to a long, float, or doubleMisleadingEmptyVarargs: Discourages calling varargs methods that expect at least one argument with no arguments, like Mockito'sthenThrowPreconditionsExpensiveString: Discourages expensive string formatting in GuavaPreconditionschecksSelfSet: Detects mistakes likeproto.setFoo(proto.getFoo())UnnecessaryCopy: detect unnecessary copies of proto Lists and Maps.Closed issues: #4924, #4897, #4995
Full changelog: https://github.com/google/error-prone/compare/v2.37.0...v2.38.0
Error Prone 2.37.0
Changes:
- The annotations that were previously in
error_prone_type_annotationshave been been merged intoerror_prone_annotations.error_prone_type_annotationsis now deprecated, and will be removed in a future release.New checks:
AssignmentExpression- The use of an assignment expression can be surprising and hard to read; consider factoring out the assignment to a separate statement.IntFloatConversion- Detect calls toscalbthat should be using the double overload insteadInvalidSnippet- Detects snippets which omit the:required for inline code.JUnit4EmptyMethods- Detects empty JUnit4@Before,@After,@BeforeClass, and@AfterClassmethods.MockIllegalThrows- Detects cases where Mockito is configured to throw checked exception types which are impossible.NegativeBoolean- Prefer positive boolean names.RuleNotRun- DetectsTestRules not annotated with@Rule, that won't be run.StringConcatToTextBlock- Replaces concatenated multiline strings with text blocks.TimeInStaticInitializer- Detects accesses of the system time in static contexts.Closed issues:
- Propagate check flags in patch mode (#4699)
- Fixes a crash in ComputeIfAbsentAmbiguousReference (#4736)
- Show the field name in HidingField diagnostics (#4775)
- Add support for jakarta annotations to some checks (#4782)
- FloatingPointAssertionWithinEpsilonTest depends on default locale (#4815)
@InlineMepatching ofStrings.repeatproduces broken code (#4819)- Fix a crash in IdentifierName on unnamed (
_) variables (#4847)- Fix a crash in ArgumentParameterSwap (#490)
Full changelog: https://github.com/google/error-prone/compare/v2.36.0...v2.37.0
Commits
a07bd3eRelease Error Prone 2.38.009fd394Fix typo in NullTernary.md4171fd7FindIdentifiers: find binding variables declared by enclosing or earlierif...d78f515Audit each use of ElementKind.LOCAL_VARIABLE, and add BINDING_VARIABLE if app...6f94a97Tolerate default cases in switches as being present to handle version skew0223abbSupport@LenientFormatStringinLenientFormatStringValidation.cb7dfafRemove theSideenum.d64c9cePromote error prone check TestExceptionChecker to ERROR within Google (blaze ...c0ce475MoveTargetTypeto a top-level class alongsideASTHelpers.90b8efbAllow binding to BINDING_VARIABLEs in GuardedByBinder.- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.