Update errorProneVersion to v2.31.0 (#6642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jack Berg <jberg@newrelic.com>
This commit is contained in:
parent
365fe8a443
commit
37e35b239b
|
@ -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"
|
||||
|
|
|
@ -21,6 +21,7 @@ import io.opentelemetry.sdk.trace.samplers.SamplingResult;
|
|||
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
|
||||
|
@ -73,7 +74,7 @@ class RateLimitingSampler implements Sampler {
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
@ -19,7 +21,7 @@ final class StackTraceSourceInfo implements SourceInfo {
|
|||
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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ import io.opentelemetry.sdk.trace.data.LinkData;
|
|||
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;
|
||||
|
||||
|
@ -112,7 +113,7 @@ final class TraceIdRatioBasedSampler implements Sampler {
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue