Skip to content

Commit 98c09fb

Browse files
Update dependency com.google.errorprone:error_prone_core to v2.39.0 (#1435)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.errorprone:error_prone_core](https://errorprone.info) ([source](https://redirect.github.com/google/error-prone)) | `2.38.0` -> `2.39.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.errorprone:error_prone_core/2.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.errorprone:error_prone_core/2.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.errorprone:error_prone_core/2.38.0/2.39.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.errorprone:error_prone_core/2.38.0/2.39.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_core)</summary> ### [`v2.39.0`](https://redirect.github.com/google/error-prone/releases/tag/v2.39.0): Error Prone 2.39.0 Changes: - Temporarily downgrade to Guava 33.4.0 ([#&#8203;5108](https://redirect.github.com/google/error-prone/issues/5108)) Checks: - [`BooleanLiteral`](https://errorprone.info/bugpattern/BooleanLiteral): Prefer `true` to `Boolean.TRUE` - [`ExpensiveLenientFormatString`](https://errorprone.info/bugpattern/ExpensiveLenientFormatString): Renamed from `PreconditionsExpensiveString`, detects unnecessary calls to `String.format` in the arguments of lenient formatting methods. - [`UnnecessaryQualifier`](https://errorprone.info/bugpattern/UnnecessaryQualifier): Detects `@Qualifier` or `@BindingAnnotation` annotations that have no effect, and can be removed Issues: [#&#8203;4996](https://redirect.github.com/google/error-prone/issues/4996), [#&#8203;5045](https://redirect.github.com/google/error-prone/issues/5045) Full changelog: google/error-prone@v2.38.0...v2.39.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42Mi4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> --------- Signed-off-by: Gregor Zeitlinger <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <[email protected]>
1 parent b13854d commit 98c09fb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
<path>
319319
<groupId>com.google.errorprone</groupId>
320320
<artifactId>error_prone_core</artifactId>
321-
<version>2.38.0</version>
321+
<version>2.39.0</version>
322322
</path>
323323
<!-- Other annotation processors go here.
324324

prometheus-metrics-core/src/main/java/io/prometheus/metrics/core/metrics/StatefulMetric.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package io.prometheus.metrics.core.metrics;
22

3-
import static java.lang.Boolean.FALSE;
4-
import static java.lang.Boolean.TRUE;
5-
63
import io.prometheus.metrics.config.MetricsProperties;
74
import io.prometheus.metrics.config.PrometheusProperties;
85
import io.prometheus.metrics.core.datapoints.DataPoint;
@@ -204,13 +201,13 @@ protected Builder(List<String> illegalLabelNames, PrometheusProperties config) {
204201

205202
/** Allow Exemplars for this metric. */
206203
public B withExemplars() {
207-
this.exemplarsEnabled = TRUE;
204+
this.exemplarsEnabled = true;
208205
return self();
209206
}
210207

211208
/** Turn off Exemplars for this metric. */
212209
public B withoutExemplars() {
213-
this.exemplarsEnabled = FALSE;
210+
this.exemplarsEnabled = false;
214211
return self();
215212
}
216213

0 commit comments

Comments
 (0)