Skip to content

Commit

Permalink
fix: follow modernizer maven plugin instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
renanfranca committed Feb 28, 2025
1 parent d6c8b32 commit b7a2bb2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.List;
import java.util.function.Function;
Expand Down Expand Up @@ -97,7 +96,7 @@ private Path rootPathFrom(String resourcePath) {
assertFolderExist(resourcePath, folderUrl);

try {
return Paths.get(folderUrl.toURI());
return Path.of(folderUrl.toURI());
} catch (URISyntaxException e) {
throw GeneratorException.technicalError("Unable to read folder %s: %s".formatted(resourcePath, e.getMessage()), e);
}
Expand Down

0 comments on commit b7a2bb2

Please sign in to comment.