Skip to content

Commit 6fdc34c

Browse files
committed
Fixed Path api (use jdk 8 style to create Path)
1 parent b366ec7 commit 6fdc34c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cluster/src/main/java/io/scalecube/cluster/membership/MembershipProtocolImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.net.InetAddress;
2121
import java.nio.ByteBuffer;
2222
import java.nio.file.Path;
23+
import java.nio.file.Paths;
2324
import java.time.Duration;
2425
import java.util.ArrayList;
2526
import java.util.Arrays;
@@ -509,8 +510,8 @@ private Mono<Void> syncMembership(SyncData syncData, boolean onStart) {
509510
}
510511

511512
private static boolean areNamespacesRelated(String namespace1, String namespace2) {
512-
Path ns1 = Path.of(namespace1);
513-
Path ns2 = Path.of(namespace2);
513+
Path ns1 = Paths.get(namespace1);
514+
Path ns2 = Paths.get(namespace2);
514515

515516
if (ns1.compareTo(ns2) == 0) {
516517
return true;

0 commit comments

Comments
 (0)