Skip to content

Commit b6a80db

Browse files
committed
Making codeNarc comment a bit more descriptive + spotless
1 parent 2754fa2 commit b6a80db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dd-java-agent/src/test/groovy/datadog/trace/bootstrap/BootstrapInitializationTelemetryTest.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)