Skip to content

Commit

Permalink
deps: update dependency com.google.errorprone:error_prone_annotations…
Browse files Browse the repository at this point in the history
… to v2.22.0 (#2130)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.errorprone:error_prone_annotations](https://errorprone.info) ([source](https://togithub.com/google/error-prone)) | `2.20.0` -> `2.22.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.errorprone:error_prone_annotations/2.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.errorprone:error_prone_annotations/2.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.errorprone:error_prone_annotations/2.20.0/2.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.errorprone:error_prone_annotations/2.20.0/2.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>google/error-prone (com.google.errorprone:error_prone_annotations)</summary>

### [`v2.22.0`](https://togithub.com/google/error-prone/releases/tag/v2.22.0): Error Prone 2.22.0

[Compare Source](https://togithub.com/google/error-prone/compare/v2.21.1...v2.22.0)

We are considering raising the minimum supported JDK from JDK 11 to JDK 17 in a future release of Error Prone, see [#&#8203;3803](https://togithub.com/google/error-prone/issues/3803). Note that using a newer JDK version to run javac during the build doesn't prevent building code that is deployed to earlier versions, for example it's supported to use the JDK 17 javac and pass `--release 11` to compile Java 11 code that is deployed to a JDK 11 runtime. If you have feedback, please comment on [#&#8203;3803](https://togithub.com/google/error-prone/issues/3803).

New checks:

-   [`ClosingStandardOutputStreams`](https://errorprone.info/bugpattern/ClosingStandardOutputStreams): Prevents accidentally closing `System.{out,err}` with try-with-resources
-   [`TruthContainsExactlyElementsInUsage`](https://errorprone.info/bugpattern/TruthContainsExactlyElementsInUsage): `containsExactly` is preferred over `containsExactlyElementsIn` when creating new iterables
-   [`UnnecessaryAsync`](https://errorprone.info/bugpattern/UnnecessaryAsync): detects unnecessary use of async primitives in local (and hence single-threaded) scopes
-   [`ReturnAtTheEndOfVoidFunction`](https://errorprone.info/bugpattern/ReturnAtTheEndOfVoidFunction): detects unnecessary `return` statements at the end of `void` functions
-   [`MultimapKeys`](https://errorprone.info/bugpattern/MultimapKeys): Suggests using `keySet()` instead of iterating over `Multimap.keys()`, which does not collapse duplicates

Bug fixes and improvements:

-   Don't complain about literal IP addresses in `AddressSelection` (https://togithub.com/google/error-prone/commit/44b65527debbc57892f21ca3ba458b16771e423e)
-   Prevent SuggestedFixes#renameMethod from modifying return type declaration ([#&#8203;4043](https://togithub.com/google/error-prone/issues/4043))
-   Fix UnusedVariable false positives for private record parameters ([#&#8203;2713](https://togithub.com/google/error-prone/issues/2713))
-   When running in conservative mode, no longer assume that implementations of `Map.get`, etc. return `null` ([#&#8203;2910](https://togithub.com/google/error-prone/issues/2910))
-   CanIgnoreReturnValueSuggester: Support additional exempting method annotations ([#&#8203;4009](https://togithub.com/google/error-prone/issues/4009))
-   UnusedVariable: exclude junit5's `@RegisterExtension` ([#&#8203;3892](https://togithub.com/google/error-prone/issues/3892))
-   Support running all available patch checks ([#&#8203;947](https://togithub.com/google/error-prone/issues/947))
-   Upgrade java-diff-utils 4.0 -> 4.12 ([#&#8203;4081](https://togithub.com/google/error-prone/issues/4081))
-   Flag unused Refaster template parameters ([#&#8203;4060](https://togithub.com/google/error-prone/issues/4060))
-   Support `@SuppressWarnings("all")` ([#&#8203;4065](https://togithub.com/google/error-prone/issues/4065))
-   Prevent Refaster `UMemberSelect` from matching method parameters ([#&#8203;2456](https://togithub.com/google/error-prone/issues/2456))
-   MissingDefault : Don't require `// fall out` comments on expression switches ([#&#8203;2709](https://togithub.com/google/error-prone/issues/2709))
-   Skip UnnecessaryLambda findings for usages in enhanced for loops ([#&#8203;2518](https://togithub.com/google/error-prone/issues/2518))
-   Fix bug where nested MissingBraces violations' suggested fixes result in broken code ([#&#8203;3797](https://togithub.com/google/error-prone/issues/3797))
-   Add support for specifying `exemptPrefixes`/`exemptNames` for UnusedVariable via flags ([#&#8203;2753](https://togithub.com/google/error-prone/issues/2753))
-   UnusedMethod: Added exempting variable annotations ([#&#8203;2881](https://togithub.com/google/error-prone/issues/2881))

Full Changelog: https://togithub.com/google/error-prone/compare/v2.21.1...v2.22.0

### [`v2.21.1`](https://togithub.com/google/error-prone/releases/tag/v2.21.1): Error Prone 2.21.1

[Compare Source](https://togithub.com/google/error-prone/compare/v2.21.0...v2.21.1)

Changes:

-   Handle overlapping ranges in suppressedRegions (fixes [#&#8203;4040](https://togithub.com/google/error-prone/issues/4040))
-   Add [` AddressSelection  `](https://errorprone.info/bugpattern/AddressSelection) to discourage APIs that convert a hostname to a single address

Full Changelog: https://togithub.com/google/error-prone/compare/v2.21.0...v2.21.1

### [`v2.21.0`](https://togithub.com/google/error-prone/releases/tag/v2.21.0): Error Prone 2.21.0

[Compare Source](https://togithub.com/google/error-prone/compare/v2.20.0...v2.21.0)

New Checkers:

-   [`AttemptedNegativeZero`](https://errorprone.info/bugpattern/AttemptedNegativeZero): Prevents accidental use of `-0`, which is the same as `0`. The floating-point negative zero is `-0.0`.
-   [`ICCProfileGetInstance`](https://errorprone.info/bugpattern/ICCProfileGetInstance): Warns on uses of `ICC_Profile.getInstance(String)`, due to [JDK-8191622](https://bugs.openjdk.org/browse/JDK-8191622).
-   [`MutableGuiceModule`](https://errorprone.info/bugpattern/MutableGuiceModule): Fields in Guice modules should be `final`.
-   [`NullableOptional`](https://errorprone.info/bugpattern/NullableOptional): Discourages `@Nullable`-annotated `Optional`s.
-   [`OverridingMethodInconsistentArgumentNamesChecker`](https://errorprone.info/bugpattern/OverridingMethodInconsistentArgumentNamesChecker): Arguments of overriding method are inconsistent with overridden method.

Fixed issues: [#&#8203;3976](https://togithub.com/google/error-prone/issues/3976), [#&#8203;3986](https://togithub.com/google/error-prone/issues/3986), [#&#8203;4001](https://togithub.com/google/error-prone/issues/4001), [#&#8203;4002](https://togithub.com/google/error-prone/issues/4002), [#&#8203;4026](https://togithub.com/google/error-prone/issues/4026), [#&#8203;4027](https://togithub.com/google/error-prone/issues/4027)

Full Changelog: https://togithub.com/google/error-prone/compare/v2.20.0...v2.21.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), 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.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
  • Loading branch information
renovate-bot committed Oct 16, 2023
1 parent 759e957 commit 805daf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api-common-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.20.0</version>
<version>2.22.0</version>
<scope>compile</scope>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion gapic-generator-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.20.0</version>
<version>2.22.0</version>
</dependency>

<!--
Expand Down
2 changes: 1 addition & 1 deletion gax-java/dependencies.properties
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ maven.com_google_guava_failureaccess=com.google.guava:failureaccess:1.0.1
maven.org_apache_commons_commons_lang3=org.apache.commons:commons-lang3:3.13.0
maven.com_google_android_annotations=com.google.android:annotations:4.1.1.4
maven.com_google_code_findbugs_jsr305=com.google.code.findbugs:jsr305:3.0.2
maven.com_google_errorprone_error_prone_annotations=com.google.errorprone:error_prone_annotations:2.20.0
maven.com_google_errorprone_error_prone_annotations=com.google.errorprone:error_prone_annotations:2.22.0
maven.com_google_j2objc_j2objc_annotations=com.google.j2objc:j2objc-annotations:2.8
maven.com_google_auto_value_auto_value=com.google.auto.value:auto-value:1.10.4
maven.com_google_auto_value_auto_value_annotations=com.google.auto.value:auto-value-annotations:1.10.4
Expand Down

0 comments on commit 805daf1

Please sign in to comment.