Skip to content

Commit 42c4091

Browse files
fix(deps): update errorproneversion to v2.41.0 (#7512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Plumb <[email protected]>
1 parent dc2874e commit 42c4091

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ val DEPENDENCY_BOMS = listOf(
2828
)
2929

3030
val autoValueVersion = "1.11.0"
31-
val errorProneVersion = "2.40.0"
31+
val errorProneVersion = "2.41.0"
3232
val jmhVersion = "1.37"
3333
// Mockito 5.x.x requires Java 11 https://github.com/mockito/mockito/releases/tag/v5.0.0
3434
val mockitoVersion = "4.11.0"

exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/UnsafeAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static long getLong(Object o, long offset) {
7171
private UnsafeAccess() {}
7272

7373
private static class UnsafeHolder {
74-
public static final Unsafe UNSAFE;
74+
private static final Unsafe UNSAFE;
7575

7676
static {
7777
UNSAFE = getUnsafe();

exporters/common/src/testGrpcSenderProvider/java/io/opentelemetry/exporter/internal/grpc/GrpcExporterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void build_multipleSendersNoMatch() {
121121
private static class DummyServiceFutureStub
122122
extends MarshalerServiceStub<DummyMarshaler, Object, DummyServiceFutureStub> {
123123

124-
protected DummyServiceFutureStub(Channel channel, CallOptions callOptions) {
124+
private DummyServiceFutureStub(Channel channel, CallOptions callOptions) {
125125
super(channel, callOptions);
126126
}
127127

@@ -147,7 +147,7 @@ private static DummyServiceFutureStub newFutureStub(
147147

148148
private static class DummyMarshaler extends MarshalerWithSize {
149149

150-
protected DummyMarshaler() {
150+
private DummyMarshaler() {
151151
super(0);
152152
}
153153

exporters/otlp/common/src/jmh/java/io/opentelemetry/exporter/internal/otlp/StringMarshalBenchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ private static class TestMarshaler extends Marshaler {
110110
context = new MarshalerContext(/* marshalStringNoAllocation= */ true, useUnsafe);
111111
}
112112

113-
public void initialize(String string) {
113+
private void initialize(String string) {
114114
value = string;
115115
size = StringAnyValueStatelessMarshaler.INSTANCE.getBinarySerializedSize(string, context);
116116
}
117117

118-
public void reset() {
118+
private void reset() {
119119
context.reset();
120120
}
121121

exporters/otlp/common/src/test/java/io/opentelemetry/exporter/internal/otlp/metrics/LowAllocationMetricsRequestMarshalerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void validateExemplar(ExemplarData exemplar) throws Exception {
128128
MarshalerContext context = new MarshalerContext();
129129
class TestMarshaler extends MarshalerWithSize {
130130

131-
protected TestMarshaler() {
131+
TestMarshaler() {
132132
super(ExemplarStatelessMarshaler.INSTANCE.getBinarySerializedSize(exemplar, context));
133133
}
134134

@@ -171,7 +171,7 @@ void validateSummary() throws Exception {
171171
MarshalerContext context = new MarshalerContext();
172172
class TestMarshaler extends MarshalerWithSize {
173173

174-
protected TestMarshaler() {
174+
TestMarshaler() {
175175
super(SummaryStatelessMarshaler.INSTANCE.getBinarySerializedSize(summary, context));
176176
}
177177

sdk-extensions/incubator/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/DeclarativeConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private static final class EnvLoad extends Load {
246246
private final LoadSettings settings;
247247
private final Map<String, String> environmentVariables;
248248

249-
public EnvLoad(LoadSettings settings, Map<String, String> environmentVariables) {
249+
private EnvLoad(LoadSettings settings, Map<String, String> environmentVariables) {
250250
super(settings);
251251
this.settings = settings;
252252
this.environmentVariables = environmentVariables;
@@ -295,7 +295,7 @@ private static final class EnvComposer extends Composer {
295295
private static final int ESCAPE_SEQUENCE_LENGTH = ESCAPE_SEQUENCE.length();
296296
private static final char ESCAPE_SEQUENCE_REPLACEMENT = '$';
297297

298-
public EnvComposer(
298+
private EnvComposer(
299299
LoadSettings settings, ParserImpl parser, Map<String, String> environmentVariables) {
300300
super(settings, parser);
301301
this.load = new Load(settings);

sdk/metrics/src/jmh/java/io/opentelemetry/sdk/metrics/TestSdk.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Tracer getTracer() {
8282
private abstract static class SdkBuilder {
8383
abstract Meter build();
8484

85-
protected static Tracer buildTracer() {
85+
private static Tracer buildTracer() {
8686
return SdkTracerProvider.builder()
8787
.setSampler(Sampler.alwaysOn())
8888
.build()

sdk/metrics/src/jmh/java/io/opentelemetry/sdk/metrics/internal/aggregator/HistogramValueGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static class PoolSupplier implements DoubleSupplier {
4949
private final double[] pool;
5050
private final AtomicInteger idx = new AtomicInteger(0);
5151

52-
public PoolSupplier(double[] pool) {
52+
private PoolSupplier(double[] pool) {
5353
this.pool = pool;
5454
}
5555

sdk/trace/src/test/java/io/opentelemetry/sdk/trace/SdkTracerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public boolean isEndRequired() {
151151
private static class SimpleSpanOperation implements OperationUpdater {
152152
private final SdkTracer tracer;
153153

154-
public SimpleSpanOperation(SdkTracer tracer) {
154+
private SimpleSpanOperation(SdkTracer tracer) {
155155
this.tracer = tracer;
156156
}
157157

@@ -168,7 +168,7 @@ public void update() {
168168

169169
private static class CountingSpanExporter implements SpanExporter {
170170

171-
public final AtomicLong numberOfSpansExported = new AtomicLong();
171+
private final AtomicLong numberOfSpansExported = new AtomicLong();
172172

173173
@Override
174174
public CompletableResultCode export(Collection<SpanData> spans) {

0 commit comments

Comments
 (0)