Skip to content

Commit

Permalink
Fix lambda instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Oct 6, 2023
1 parent 7a6fcb7 commit f8906c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public boolean matches(TypeDescription target) {
}

// bytecode proxies typically have $$ in their name
if (name.contains("$$") && !name.contains("$$Lambda$")) {
if (name.contains("$$") && !name.contains("$$Lambda$") && !name.endsWith("$$Lambda")) {
// allow scala anonymous classes
return !name.contains("$$anon$");
}
Expand Down

0 comments on commit f8906c2

Please sign in to comment.