Skip to content

Commit 96a66ef

Browse files
committed
[mvn] Update paths get to path of
1 parent 3af9e5d commit 96a66ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import java.net.URL;
2626
import java.nio.file.Files;
2727
import java.nio.file.Path;
28-
import java.nio.file.Paths;
2928
import java.nio.file.StandardCopyOption;
3029
import java.util.concurrent.ThreadLocalRandom;
3130

@@ -46,7 +45,7 @@ public static void main(String[] args) {
4645
log(" - Downloader started");
4746
final URL wrapperUrl = URI.create(args[0]).toURL();
4847
final String jarPath = args[1].replace("..", ""); // Sanitize path
49-
final Path wrapperJarPath = Paths.get(jarPath).toAbsolutePath().normalize();
48+
final Path wrapperJarPath = Path.of(jarPath).toAbsolutePath().normalize();
5049
downloadFileFromURL(wrapperUrl, wrapperJarPath);
5150
log("Done");
5251
} catch (IOException e) {

0 commit comments

Comments
 (0)