Skip to content

Commit a52db48

Browse files
committed
Oh right, it has to work with Java 8 still
1 parent 2941db1 commit a52db48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: java/src/org/openqa/selenium/manager/SeleniumManager.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.nio.file.FileVisitResult;
2626
import java.nio.file.Files;
2727
import java.nio.file.Path;
28+
import java.nio.file.Paths;
2829
import java.nio.file.SimpleFileVisitor;
2930
import java.nio.file.attribute.BasicFileAttributes;
3031
import java.util.ArrayList;
@@ -171,7 +172,7 @@ private synchronized Path getBinary() {
171172
String binaryPath;
172173
if (System.getenv("SE_MANAGER_PATH") != null) {
173174
folder = System.getenv("SE_MANAGER_PATH");
174-
binary = Path.of(String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension));
175+
binary = Paths.get(String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension));
175176
} else {
176177
binaryPath = String.format("%s/%s%s", folder, SELENIUM_MANAGER, extension);
177178
try (InputStream inputStream = this.getClass().getResourceAsStream(binaryPath)) {

0 commit comments

Comments
 (0)