Skip to content

Commit c7e292e

Browse files
committed
remove unused var
1 parent d511e34 commit c7e292e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/util/ClassNameFiltering.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,10 @@ static boolean isLambdaProxyClass(String className) {
5454
}
5555

5656
int shadedIndexOf(String className) {
57-
String current = className;
5857
int idx = 0;
5958
int previousIdx = 0;
60-
while ((idx = current.indexOf('.', previousIdx)) > 0) {
61-
if (shadingTrie.apply(current, previousIdx) > 0) {
59+
while ((idx = className.indexOf('.', previousIdx)) > 0) {
60+
if (shadingTrie.apply(className, previousIdx) > 0) {
6261
return idx + 1;
6362
}
6463
idx++;

0 commit comments

Comments
 (0)