Remove redundant type argument conversion (#1734)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
parent
0746ddbf68
commit
391043fa1f
|
|
@ -117,7 +117,7 @@ public abstract class TraceState {
|
||||||
|
|
||||||
// Needs to be in this class to avoid initialization deadlock because super class depends on
|
// Needs to be in this class to avoid initialization deadlock because super class depends on
|
||||||
// subclass (the auto-value generate class).
|
// subclass (the auto-value generate class).
|
||||||
private static final TraceState EMPTY = create(Collections.<Entry>emptyList());
|
private static final TraceState EMPTY = create(Collections.emptyList());
|
||||||
|
|
||||||
private Builder(TraceState parent) {
|
private Builder(TraceState parent) {
|
||||||
Utils.checkNotNull(parent, "parent");
|
Utils.checkNotNull(parent, "parent");
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ public class MultiSpanExporterBenchmark {
|
||||||
.setHasEnded(true)
|
.setHasEnded(true)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
this.spans = Arrays.<SpanData>asList(spans);
|
this.spans = Arrays.asList(spans);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Benchmark
|
@Benchmark
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,7 @@ public abstract class ResourcesConfig {
|
||||||
* @return a new {@link Builder}.
|
* @return a new {@link Builder}.
|
||||||
*/
|
*/
|
||||||
public static Builder newBuilder() {
|
public static Builder newBuilder() {
|
||||||
return new AutoValue_ResourcesConfig.Builder()
|
return new AutoValue_ResourcesConfig.Builder().setDisabledResourceProviders(ImmutableSet.of());
|
||||||
.setDisabledResourceProviders(ImmutableSet.<String>of());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -50,10 +50,10 @@ public abstract class TestSpanData implements SpanData {
|
||||||
return new AutoValue_TestSpanData.Builder()
|
return new AutoValue_TestSpanData.Builder()
|
||||||
.setParentSpanId(SpanId.getInvalid())
|
.setParentSpanId(SpanId.getInvalid())
|
||||||
.setInstrumentationLibraryInfo(InstrumentationLibraryInfo.getEmpty())
|
.setInstrumentationLibraryInfo(InstrumentationLibraryInfo.getEmpty())
|
||||||
.setLinks(Collections.<Link>emptyList())
|
.setLinks(Collections.emptyList())
|
||||||
.setTotalRecordedLinks(0)
|
.setTotalRecordedLinks(0)
|
||||||
.setAttributes(Attributes.empty())
|
.setAttributes(Attributes.empty())
|
||||||
.setEvents(Collections.<Event>emptyList())
|
.setEvents(Collections.emptyList())
|
||||||
.setTotalRecordedEvents(0)
|
.setTotalRecordedEvents(0)
|
||||||
.setResource(Resource.getEmpty())
|
.setResource(Resource.getEmpty())
|
||||||
.setTraceState(TraceState.getDefault())
|
.setTraceState(TraceState.getDefault())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue