Skip to content

Commit 567dc87

Browse files
committed
eval: apply spotless formatting to jedis-3.0 reference
1 parent 5554651 commit 567dc87

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

dd-java-agent/instrumentation/jedis/jedis-3.0/src/main/java/datadog/trace/instrumentation/jedis30/JedisInstrumentation.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,15 @@ public void methodAdvice(MethodTransformer transformer) {
5454
transformer.applyAdvice(
5555
isMethod()
5656
.and(named("sendCommand"))
57-
.and(
58-
takesArgument(
59-
0, named("redis.clients.jedis.commands.ProtocolCommand"))),
57+
.and(takesArgument(0, named("redis.clients.jedis.commands.ProtocolCommand"))),
6058
JedisInstrumentation.class.getName() + "$JedisAdvice");
6159
}
6260

6361
public static class JedisAdvice {
6462

6563
@Advice.OnMethodEnter(suppress = Throwable.class)
6664
public static AgentScope onEnter(
67-
@Advice.Argument(0) final ProtocolCommand command,
68-
@Advice.This final Connection thiz) {
65+
@Advice.Argument(0) final ProtocolCommand command, @Advice.This final Connection thiz) {
6966
if (CallDepthThreadLocalMap.incrementCallDepth(Connection.class) > 0) {
7067
return null;
7168
}

dd-java-agent/instrumentation/jedis/jedis-3.0/src/test/java/datadog/trace/instrumentation/jedis30/Jedis30ClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import datadog.trace.bootstrap.instrumentation.api.Tags;
2323
import java.io.IOException;
2424
import java.util.HashMap;
25-
import java.util.concurrent.TimeoutException;
26-
import java.util.regex.Pattern;
2725
import java.util.HashSet;
2826
import java.util.Map;
2927
import java.util.Set;
28+
import java.util.concurrent.TimeoutException;
29+
import java.util.regex.Pattern;
3030
import org.junit.jupiter.api.AfterAll;
3131
import org.junit.jupiter.api.BeforeAll;
3232
import org.junit.jupiter.api.BeforeEach;

0 commit comments

Comments
 (0)