CodeNarc complains about the unused variable
MODIFY
dd-java-agent/instrumentation/java-concurrent/src/test/groovy/ModuleInjectionTest.groovy
dd-java-agent/instrumentation/java-concurrent/src/test/groovy/ModuleInjectionTest.groovy
@@ -13,7 +13,7 @@ class ModuleInjectionTest extends AgentTestRunner {
*/
def "test instrumenting java.desktop class"() {
when:
- RepaintManager repaintManager = new RepaintManager()
+ new RepaintManager()
then:
noExceptionThrown()

CodeNarc complains about the unused variable