Skip to content

Commit

Permalink
Avoid Spotbugs failure for intentional static write
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Sep 3, 2024
1 parent 81be494 commit fdf7d82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions spectator-ext-jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,6 +32,7 @@

public class JavaFlightRecorderTest {

@SuppressFBWarnings
public static volatile Object obj;

@Test
Expand Down

0 comments on commit fdf7d82

Please sign in to comment.