Skip to content

Commit

Permalink
Update errorProneVersion to v2.31.0 (#6642)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Berg <[email protected]>
  • Loading branch information
renovate[bot] and jack-berg authored Aug 30, 2024
1 parent 365fe8a commit 37e35b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ val DEPENDENCY_BOMS = listOf(
)

val autoValueVersion = "1.11.0"
val errorProneVersion = "2.29.2"
val errorProneVersion = "2.31.0"
val jmhVersion = "1.37"
// Mockito 5.x.x requires Java 11 https://github.com/mockito/mockito/releases/tag/v5.0.0
val mockitoVersion = "4.11.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.List;
import java.util.Locale;

/**
* {@link RateLimitingSampler} sampler uses a leaky bucket rate limiter to ensure that traces are
Expand Down Expand Up @@ -73,7 +74,7 @@ public String toString() {
}

private static String decimalFormat(double value) {
DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance();
DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance(Locale.ROOT);
decimalFormatSymbols.setDecimalSeparator('.');

DecimalFormat decimalFormat = new DecimalFormat("0.00", decimalFormatSymbols);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

package io.opentelemetry.sdk.metrics.internal.debug;

import java.util.Locale;

/** Diagnostic information derived from stack traces. */
final class StackTraceSourceInfo implements SourceInfo {

Expand All @@ -19,7 +21,7 @@ public String shortDebugString() {
if (stackTraceElements.length > 0) {
for (StackTraceElement e : stackTraceElements) {
if (isInterestingStackTrace(e)) {
return String.format("%s:%d", e.getFileName(), e.getLineNumber());
return String.format(Locale.ROOT, "%s:%d", e.getFileName(), e.getLineNumber());
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.List;
import java.util.Locale;
import javax.annotation.Nullable;
import javax.annotation.concurrent.Immutable;

Expand Down Expand Up @@ -112,7 +113,7 @@ private static long getTraceIdRandomPart(String traceId) {
}

private static String decimalFormat(double value) {
DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance();
DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols.getInstance(Locale.ROOT);
decimalFormatSymbols.setDecimalSeparator('.');

DecimalFormat decimalFormat = new DecimalFormat("0.000000", decimalFormatSymbols);
Expand Down

0 comments on commit 37e35b2

Please sign in to comment.