Skip to content

Commit

Permalink
spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Nov 9, 2023
1 parent 368a4ad commit fd09457
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import io.cryostat.net.AuthManager;

import dagger.Lazy;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.openshift.client.OpenShiftClient;
import org.apache.commons.lang3.StringUtils;
Expand Down Expand Up @@ -65,6 +66,10 @@ public Map<String, String> environment() {
return env;
}

@SuppressFBWarnings(
value = "DMI_HARDCODED_ABSOLUTE_FILENAME",
justification =
"file path is well-known and absolute, injected by the Cryostat Operator")
private String getInsightsToken() {
try {
return fs.readString(Paths.get(INSIGHTS_TOKEN_PATH));
Expand Down

0 comments on commit fd09457

Please sign in to comment.