Skip to content

Commit 60605ad

Browse files
author
Bhumika Sharma
committed
Fix: make method and variable private
Signed-off-by: Bhumika Sharma <[email protected]>
1 parent 964b281 commit 60605ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/monitor/fs/FsHealthService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class FsHealthService extends AbstractLifecycleComponent implements NodeH
8787
private volatile TimeValue healthyTimeoutThreshold;
8888
private final AtomicLong lastRunStartTimeMillis = new AtomicLong(Long.MIN_VALUE);
8989
private final AtomicBoolean checkInProgress = new AtomicBoolean();
90-
public Counter fsHealthFailCounter;
90+
private final Counter fsHealthFailCounter;
9191
private static final String COUNTER_METRICS_UNIT = "1";
9292

9393
@Nullable
@@ -230,7 +230,7 @@ private void emitMetric() {
230230
}
231231
}
232232

233-
public void incrementCounter(Counter counter, Double value) {
233+
private void incrementCounter(Counter counter, Double value) {
234234
counter.add(value);
235235
}
236236

0 commit comments

Comments
 (0)