Skip to content

Commit bcc0639

Browse files
chore(deps): update dependency com.google.errorprone:error_prone_core to v2.47.0 (#1848)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [com.google.errorprone:error_prone_core](https://errorprone.info) ([source](https://redirect.github.com/google/error-prone)) | `2.46.0` → `2.47.0` | ![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.errorprone:error_prone_core/2.47.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.errorprone:error_prone_core/2.46.0/2.47.0?slim=true) | --- > [!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.47.0`](https://redirect.github.com/google/error-prone/releases/tag/v2.47.0): Error Prone 2.47.0 New checks: - [`InterruptedInCatchBlock`](https://errorprone.info/bugpattern/InterruptedInCatchBlock): Detect accidental calls to `Thread.interrupted()` inside of `catch(InterruptedException e)` blocks. - [`RefactorSwitch`](https://errorprone.info/bugpattern/RefactorSwitch): Refactorings to simplify arrow switches - [`UnnamedVariable`](https://errorprone.info/bugpattern/UnnamedVariable): Rename unused variables to `_` Closed issues: [#&#8203;1811](https://redirect.github.com/google/error-prone/issues/1811), [#&#8203;4168](https://redirect.github.com/google/error-prone/issues/4168), [#&#8203;5459](https://redirect.github.com/google/error-prone/issues/5459), [#&#8203;5460](https://redirect.github.com/google/error-prone/issues/5460) Full changelog: <google/error-prone@v2.46.0...v2.47.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:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTUuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent 14c51df commit bcc0639

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
<path>
450450
<groupId>com.google.errorprone</groupId>
451451
<artifactId>error_prone_core</artifactId>
452-
<version>2.46.0</version>
452+
<version>2.47.0</version>
453453
</path>
454454
<path>
455455
<groupId>com.uber.nullaway</groupId>

prometheus-metrics-exporter-common/src/main/java/io/prometheus/metrics/exporter/common/PrometheusHttpRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ default String getParameter(String name) {
4343
/** See {@code jakarta.servlet.ServletRequest.getParameterValues(String)} */
4444
@Override
4545
@Nullable
46+
// decode with Charset is only available in Java 10+, but we want to support Java 8
47+
@SuppressWarnings("JdkObsolete")
4648
default String[] getParameterValues(String name) {
4749
try {
4850
ArrayList<String> result = new ArrayList<>();

prometheus-metrics-exporter-pushgateway/src/main/java/io/prometheus/metrics/exporter/pushgateway/PushGateway.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ private void doRequest(@Nullable PrometheusRegistry registry, String method) thr
253253
}
254254
}
255255

256+
// toString with Charset is only available in Java 10+, but we want to support Java 8
257+
@SuppressWarnings("JdkObsolete")
256258
private static String readFromStream(InputStream is) throws IOException {
257259
ByteArrayOutputStream result = new ByteArrayOutputStream();
258260
byte[] buffer = new byte[1024];
@@ -497,6 +499,8 @@ private Format getFormat() {
497499
return Format.PROMETHEUS_PROTOBUF;
498500
}
499501

502+
// encode with Charset is only available in Java 10+, but we want to support Java 8
503+
@SuppressWarnings("JdkObsolete")
500504
private URL makeUrl(@Nullable ExporterPushgatewayProperties properties)
501505
throws UnsupportedEncodingException, MalformedURLException {
502506
StringBuilder url =

prometheus-metrics-exposition-textformats/src/main/java/io/prometheus/metrics/expositionformats/ExpositionFormatWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ default void write(OutputStream out, MetricSnapshots metricSnapshots) throws IOE
2020
}
2121

2222
/** Converts the metric snapshots to a debug string using the specified escaping scheme. */
23+
// toString with Charset is only available in Java 10+, but we want to support Java 8
24+
@SuppressWarnings("JdkObsolete")
2325
default String toDebugString(MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) {
2426
ByteArrayOutputStream out = new ByteArrayOutputStream();
2527
try {

0 commit comments

Comments
 (0)