From 8f1075931ffee30b6c589869902d58e8bce1b11b Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Mon, 29 Mar 2021 11:07:32 +0200 Subject: [PATCH] Use Path.of() instead of Paths.get() --- copy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copy.java b/copy.java index 20ec7e7..6b4e205 100644 --- a/copy.java +++ b/copy.java @@ -2,7 +2,7 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.net.URL; import java.nio.file.Files; -import java.nio.file.Paths; +import java.nio.file.Path; import java.nio.file.StandardCopyOption; class copy { @@ -16,7 +16,7 @@ class copy { var version = args[0]; var url = "https://github.com/jreleaser/jreleaser/releases/download/" + version + "/jreleaser-tool-provider-" + version + ".jar"; - var file = Paths.get("jreleaser-cli.jar"); + var file = Path.of("jreleaser-cli.jar"); try (var stream = new URL(url).openStream()) { System.out.printf("✅ Located JReleaser %s%n", version);