Skip to content

Commit 953a92b

Browse files
authored
Remove unused dependency (#4403)
1 parent 6337f12 commit 953a92b

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

agent/agent-tooling/build.gradle.kts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ dependencies {
6262
testImplementation("io.opentelemetry:opentelemetry-sdk-logs")
6363
testImplementation("io.opentelemetry:opentelemetry-sdk-testing")
6464

65-
// TODO(trask): update tests, no need to use this anymore
66-
testImplementation("com.squareup.okio:okio:3.15.0")
67-
6865
compileOnly(project(":agent:agent-bootstrap"))
6966
compileOnly("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api")
7067
compileOnly("io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-incubator")

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/processors/TelemetryProcessorMaskingTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import java.util.ArrayList;
2727
import java.util.Collections;
2828
import java.util.List;
29-
import org.jetbrains.annotations.NotNull;
3029
import org.junit.jupiter.api.Test;
3130

3231
class TelemetryProcessorMaskingTest {
@@ -76,7 +75,6 @@ void shouldMaskAttributeWithGroupName() {
7675
assertThat(newHttpUrlAttributeValue).isEqualTo("https://user/" + mask);
7776
}
7877

79-
@NotNull
8078
private static AttributeProcessor maskingAttributeProcessor(
8179
String httpAttributeKey, String regEx, String replacementPattern) {
8280
Configuration.ProcessorAction maskingAction =

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/profiler/ProfilingInitializerTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.List;
2222
import java.util.function.Consumer;
2323
import java.util.stream.Collectors;
24-
import org.jetbrains.annotations.NotNull;
2524
import org.junit.jupiter.api.Assertions;
2625
import org.junit.jupiter.api.DynamicTest;
2726
import org.junit.jupiter.api.TestFactory;
@@ -164,7 +163,6 @@ public Collection<DynamicTest> runTests() {
164163
.collect(Collectors.toList());
165164
}
166165

167-
@NotNull
168166
private static ProfilerConfiguration unconfiguredState() {
169167
return new ProfilerConfiguration()
170168
.setLastModified(ProfilerConfiguration.DEFAULT_DATE)
@@ -176,7 +174,6 @@ private static ProfilerConfiguration unconfiguredState() {
176174
"--memory-threshold 80 --memory-trigger-profilingDuration 120 --memory-trigger-cooldown 14400 --memory-trigger-enabled true");
177175
}
178176

179-
@NotNull
180177
private static ProfilerConfiguration userConfiguredTriggersState(boolean triggersEnabled) {
181178
return new ProfilerConfiguration()
182179
.setLastModified(new Date(Instant.now().toEpochMilli()))
@@ -190,7 +187,6 @@ private static ProfilerConfiguration userConfiguredTriggersState(boolean trigger
190187
+ triggersEnabled);
191188
}
192189

193-
@NotNull
194190
private static ProfilerConfiguration profileNowState(
195191
boolean expiredPast, boolean triggersEnabled) {
196192
Instant expiration;

agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/profiler/triggers/AlertTriggerSpanProcessorTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Collections;
2121
import java.util.concurrent.atomic.AtomicBoolean;
2222
import java.util.function.Consumer;
23-
import org.jetbrains.annotations.NotNull;
2423
import org.junit.jupiter.api.Assertions;
2524
import org.junit.jupiter.api.Test;
2625

@@ -82,7 +81,6 @@ public void underThenOverThresholdDataDoesCauseAlert() throws InterruptedExcepti
8281
});
8382
}
8483

85-
@NotNull
8684
private static ReadableSpan buildSampleSpan(String fooBar, int durationMillis) {
8785
Instant end = Instant.now();
8886
Instant start = end.minusMillis(durationMillis);

0 commit comments

Comments
 (0)