summaryrefslogtreecommitdiffstats
path: root/aai-failover/src
diff options
context:
space:
mode:
Diffstat (limited to 'aai-failover/src')
-rw-r--r--aai-failover/src/main/java/org/onap/aai/failover/FailoverMonitor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/aai-failover/src/main/java/org/onap/aai/failover/FailoverMonitor.java b/aai-failover/src/main/java/org/onap/aai/failover/FailoverMonitor.java
index 731abe7c..111ac6b2 100644
--- a/aai-failover/src/main/java/org/onap/aai/failover/FailoverMonitor.java
+++ b/aai-failover/src/main/java/org/onap/aai/failover/FailoverMonitor.java
@@ -24,7 +24,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
-import java.nio.file.Paths;
import java.util.Properties;
import org.springframework.beans.factory.annotation.Value;
@@ -42,7 +41,7 @@ public class FailoverMonitor {
public boolean shouldRun() throws IOException {
- Path failoverPath = Paths.get(failoverPropertiesPath);
+ Path failoverPath = Path.of(failoverPropertiesPath);
if (Files.exists(failoverPath)) {
Properties properties = new Properties();