Skip to content

Commit

Permalink
Suppressed find bugs warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 committed Nov 5, 2023
1 parent 68fadb4 commit 29e3e9c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.apache.hadoop.ozone.om;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.hadoop.hdds.annotation.InterfaceAudience;
import org.apache.hadoop.metrics2.MetricsSystem;
import org.apache.hadoop.metrics2.annotation.Metric;
Expand All @@ -37,6 +38,8 @@ private OmSnapshotMetrics() {
}

private static OmSnapshotMetrics instance;

@SuppressFBWarnings("DC_DOUBLECHECK")
public static OmSnapshotMetrics getInstance() {
if (instance != null) {
return instance;
Expand Down

0 comments on commit 29e3e9c

Please sign in to comment.