Skip to content

Commit e03663f

Browse files
committed
clean up/reduce diff
1 parent 41e9e65 commit e03663f

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/probe/Where.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,12 @@ public static Where of(String typeName, String methodName, String signature, Str
5151
}
5252

5353
public static Where of(Method method) {
54-
Where where =
55-
of(
56-
method.getDeclaringClass().getName(),
57-
method.getName(),
58-
stream(method.getParameterTypes())
59-
.map(Class::getTypeName)
60-
.collect(Collectors.joining(", ", "(", ")")));
61-
62-
return where;
54+
return of(
55+
method.getDeclaringClass().getName(),
56+
method.getName(),
57+
stream(method.getParameterTypes())
58+
.map(Class::getTypeName)
59+
.collect(Collectors.joining(", ", "(", ")")));
6360
}
6461

6562
protected static SourceLine[] sourceLines(String[] defs) {

dd-java-agent/agent-debugger/src/test/java/com/datadog/debugger/origin/CodeOriginTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,6 @@ public void withLogProbe() throws IOException, URISyntaxException {
122122
List<ProbeDefinition> probes = codeOriginProbes(CLASS_NAME);
123123
installProbes(probes);
124124
final Class<?> testClass = compileAndLoadClass(CLASS_NAME);
125-
try {
126-
Thread.sleep(1000);
127-
} catch (InterruptedException e) {
128-
throw new RuntimeException(e);
129-
}
130125
checkResults(testClass, "debug_1", false);
131126
}
132127

0 commit comments

Comments
 (0)