diff --git a/spectator-ext-jvm/build.gradle b/spectator-ext-jvm/build.gradle index d594be840..fdebd29ed 100644 --- a/spectator-ext-jvm/build.gradle +++ b/spectator-ext-jvm/build.gradle @@ -18,6 +18,7 @@ sourceSets { dependencies { api project(':spectator-api') implementation 'com.typesafe:config' + testImplementation 'com.google.code.findbugs:annotations:3.0.1u2' } def java17Compiler = javaToolchains.compilerFor { diff --git a/spectator-ext-jvm/src/test/java17/com/netflix/spectator/jvm/JavaFlightRecorderTest.java b/spectator-ext-jvm/src/test/java17/com/netflix/spectator/jvm/JavaFlightRecorderTest.java index 40fbf3974..48c344e70 100644 --- a/spectator-ext-jvm/src/test/java17/com/netflix/spectator/jvm/JavaFlightRecorderTest.java +++ b/spectator-ext-jvm/src/test/java17/com/netflix/spectator/jvm/JavaFlightRecorderTest.java @@ -20,6 +20,7 @@ import com.netflix.spectator.api.Id; import com.netflix.spectator.api.Measurement; import com.netflix.spectator.api.Registry; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import org.junit.jupiter.api.Test; import java.util.Map; @@ -31,6 +32,7 @@ public class JavaFlightRecorderTest { + @SuppressFBWarnings public static volatile Object obj; @Test