Skip to content

Commit a2d8eb8

Browse files
committed
More forbidden APIs
1 parent 48fe7cc commit a2d8eb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/framework/src/main/java/org/elasticsearch/entitlement/bootstrap/TestEntitlementBootstrap.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.net.URI;
3333
import java.net.URL;
3434
import java.nio.file.Path;
35-
import java.nio.file.Paths;
3635
import java.util.ArrayList;
3736
import java.util.Arrays;
3837
import java.util.Collection;
@@ -135,7 +134,7 @@ private static TestPolicyManager createPolicyManager(PathLookup pathLookup) thro
135134
testOnlyClassPath = Set.of();
136135
} else {
137136
testOnlyClassPath = Arrays.stream(testOnlyPathString.split(separator))
138-
.map(Paths::get)
137+
.map(PathUtils::get)
139138
.map(Path::toUri)
140139
.collect(toCollection(TreeSet::new));
141140
}

0 commit comments

Comments
 (0)