Skip to content

Commit d028cc5

Browse files
Replaced Paths.get with Path.of
1 parent 177421f commit d028cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/data/h2db/MigrationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static Path getMigrationsDirectory() throws URISyntaxException, IOExcepti
3030
if (resource == null) throw new IOException("Missing resource /migrations/");
3131
URI uri = resource.toURI();
3232
try {
33-
return Paths.get(uri);
33+
return Path.of(uri);
3434
} catch (FileSystemNotFoundException e) {
3535
Map<String, String> env = new HashMap<>();
3636
try (FileSystem dir = FileSystems.newFileSystem(uri, env)) {

0 commit comments

Comments
 (0)