Introduce additional File and Path Refaster rules (#1282)

This commit is contained in:
Stephan Schroevers
2024-08-22 10:58:09 +03:00
committed by GitHub
parent d94f65a1f0
commit 4cbfdba521
5 changed files with 105 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ import java.io.IOException;
import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ServiceLoader;
import javax.tools.JavaFileObject;
@@ -87,6 +86,6 @@ final class DocumentationGeneratorTaskListener implements TaskListener {
}
private static String getSimpleClassName(URI path) {
return Paths.get(path).getFileName().toString().replace(".java", "");
return Path.of(path).getFileName().toString().replace(".java", "");
}
}