Skip to content

Commit eedf11e

Browse files
Minor cleanup.
1 parent 7b63b09 commit eedf11e

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

dd-java-agent/instrumentation/aws-java/aws-java-sqs-1.0/src/test/groovy/SqsClientTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ abstract class SqsClientTest extends VersionedNamingTestBase {
8181
if (server != null) {
8282
try {
8383
server.stopAndWait()
84-
} catch (InterruptedException ignored) {
84+
} catch (InterruptedException _) {
8585
Thread.currentThread().interrupt()
8686
}
8787
}

dd-java-agent/instrumentation/protobuf/src/test/groovy/com/datadog/instrumentation/protobuf/AbstractMessageInstrumentationTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class AbstractMessageInstrumentationTest extends AgentTestRunner {
241241
MyMessage.parseFrom(new byte[]{
242242
1, 2, 3, 4, 5
243243
})
244-
} catch (InvalidProtocolBufferException ignored) {
244+
} catch (InvalidProtocolBufferException _) {
245245
}
246246
}
247247
TEST_WRITER.waitForTraces(1)

dd-java-agent/instrumentation/tomcat-5.5/src/latestDepTest/groovy/TomcatServer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class TomcatServer implements WebsocketServer {
136136
while (WsEndpoint.activeSession == null) {
137137
WsEndpoint.wait()
138138
}
139-
} catch (InterruptedException ignored) {
139+
} catch (InterruptedException _) {
140140
Thread.currentThread().interrupt()
141141
}
142142
}

dd-java-agent/instrumentation/tomcat-5.5/src/tomcat9Test/groovy/TomcatServer.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class TomcatServer implements WebsocketServer {
9292
while (WsEndpoint.activeSession == null) {
9393
WsEndpoint.wait()
9494
}
95-
} catch (InterruptedException ignored) {
95+
} catch (InterruptedException _) {
9696
Thread.currentThread().interrupt()
9797
}
9898
}

dd-java-agent/instrumentation/websocket/jakarta-websocket-2.0/src/test/groovy/EndpointWrapper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class EndpointWrapper extends Endpoint {
1414
def endpoint = endpointConfig.getUserProperties().get(Endpoint.name) as Endpoint
1515
assert endpoint != null
1616
session.getUserProperties().put(Endpoint.name, endpoint)
17-
try (def ignored = span != null ? activateSpan(span) : null) {
17+
try (def _ = span != null ? activateSpan(span) : null) {
1818
endpoint.onOpen(session, endpointConfig)
1919
}
2020
}

dd-java-agent/instrumentation/websocket/javax-websocket-1.0/src/test/groovy/EndpointWrapper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class EndpointWrapper extends Endpoint {
1414
def endpoint = endpointConfig.getUserProperties().get(Endpoint.name) as Endpoint
1515
assert endpoint != null
1616
session.getUserProperties().put(Endpoint.name, endpoint)
17-
try (def ignored = span != null ? activateSpan(span) : null) {
17+
try (def _ = span != null ? activateSpan(span) : null) {
1818
endpoint.onOpen(session, endpointConfig)
1919
}
2020
}

0 commit comments

Comments
 (0)