You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/bytebuddy/matcher/ProxyClassIgnores.java
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -5,24 +5,16 @@ public class ProxyClassIgnores {
5
5
privateProxyClassIgnores() {}
6
6
7
7
publicstaticbooleanisIgnored(Stringname) {
8
-
intlast = -1;
9
-
intidx;
10
-
while (true) {
11
-
idx = name.indexOf('$', last + 1);
12
-
if (idx < 0) {
13
-
break;
14
-
}
8
+
for (intlast = -1, idx; (idx = name.indexOf('$', last + 1)) >= 0; last = idx) {
15
9
if (last < 0 && name.contains("CGLIB$$")) {
16
10
// check this once
17
11
returntrue;
18
12
}
19
13
if (idx == last + 1) {
20
14
// skip the trie if consecutive $$ since, to be efficient, we can match prefixes from the
21
15
// first dollar
22
-
last = idx;
23
16
continue;
24
17
}
25
-
last = idx;
26
18
if (ProxyIgnoredClassNameTrie.apply(name, idx) == 1) {
0 commit comments