Bump com.google.errorprone:error_prone_annotations from 2.48.0 to 2.49.0 in the dependencies group
Bumps the dependencies group with 1 update: com.google.errorprone:error_prone_annotations.
Updates
com.google.errorprone:error_prone_annotationsfrom 2.48.0 to 2.49.0Release notes
Sourced from com.google.errorprone:error_prone_annotations's releases.
Error Prone 2.49.0
This release includes several changes to
MatcherAPIs, and removed some deprecated or problematic APIs:
- Remove deprecated
MethodMatchers.withSignatureAPI, which relies on fragiletoStringbehaviour. Alternatives for matching on method signatures with varargs and type parameters were added in https://github.com/google/error-prone/commit/a98a1c55d92d343ae2c142485e8888cd46aa78b3.- Removed
variableType(Matcher)API.Matchers.variableType(Matcher)usesVariableTree#getTypeto match variable types, which own't work for lambda parameters with inferred types after JDK-8268850. The recommended replacement isvariableType(TypePredicate).- Make
enclosingPackagereturn an optional. Module elements are not enclosed by a package, checks usingenclosingPackageshouldn't assume an enclosing package exists when processing arbitrary elements.- New
FieldMatchersAPI, similar toMethodMatchers(https://github.com/google/error-prone/commit/1dd9c3a6bd76fca8104be6ae1c1004655d6a1745).New checks:
AssertThrowsBlockToExpression: Discourage unnecessary block lambdas inassertThrows.AssertThrowsMinimizer: Suggest minimizing the amount of logic inassertThrows.MemorySegmentReferenceEquality: Discourage using reference equality forMemorySegments.PreferThrowsTag: Recommends using@throwsinstead of the legacy@exceptionjavadoc tag.RecordAccessorInCompactConstructor: detect record accessors inside the compact canonical ctors, which read uninitialized fields.Closed issues: #2283, #3503, #5210, #5289, #5548, #5548, #5554, #5609, #5614, #5656
Full changelog: https://github.com/google/error-prone/compare/v2.48.0...v2.49.0
Commits
89d75c1Release Error Prone 2.49.00b7b03bFix up some javadoc on `ModifySourceCollectionInStream.isStreamApiInvocationO...fe5a7b1Remove old FieldMatchers APId54a1d1Fix up someFinallyjavadocs.d93b319[RefactorSwitch] bugfix comment handlingff59782[IfChainToSwitch] cleanup redundant conditions in ternary. No functional cha...43b6df6Generalise DuplicateAssertion to handle check* methods.2c4346fFix a bug inBooleanLiteral: it currently suggests replacing `Boolean.FALSE...559039b[IfChainToSwitch] doc-only change. fix typo in code comments.393c61c[IfChainToSwitch] enhance code generation to emit unnamed variables, when sup...- Additional commits viewable in compare view
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 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 show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency’s major version (unless you unignore this specific dependency’s major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency’s minor version (unless you unignore this specific dependency’s minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditionsFixes https://github.com/google/truth/pull/1641
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/truth/pull/1641 from google:dependabot/maven/dependencies-f3cfcc518e 2a3815fdf442141cffadf517de9007b1d94c9c8a PiperOrigin-RevId: 899561974
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
What is Truth?
Truth makes your test assertions and failure messages more readable. Similar to AssertJ, it natively supports many JDK and Guava types, and it is extensible to others.
Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase.
Read more at the main website.