File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
dd-java-agent/src/test/groovy/datadog/trace/bootstrap Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ class BootstrapInitializationTelemetryTest extends Specification {
1717 // happens it resolves the invocation against the bootstrap classloader.
1818
1919 // To side step this problem, put a Groovy Proxy around the object under test
20-
21- // codeNarc was incorrectly flagging "import groovy.util.Proxy" as unused,
22- // so I had to switch to specifying the package inline instead
20+
21+ // codeNarc was incorrectly flagging "import groovy.util.Proxy" as unnecessary,
22+ // since groovy.util is imported implicitly. However, java.util is also
23+ // implicitly imported and also contains a Proxy class, so need to use the
24+ // full name inline to disambiguate and pass codeNarc.
2325 def initTelemetryProxy = new groovy.util.Proxy ()
2426 initTelemetryProxy. setAdaptee(initTelemetry)
2527
You can’t perform that action at this time.
0 commit comments