langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/RelativePath.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/RelativePath.java Wed Jul 05 20:08:43 2017 +0200
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/RelativePath.java Wed Dec 03 19:28:40 2014 +0000
@@ -57,12 +57,6 @@
public abstract String basename();
- public File getFile(File directory) {
- if (path.length() == 0)
- return directory;
- return new File(directory, path.replace('/', File.separatorChar));
- }
-
public Path getFile(Path directory) throws /*unchecked*/ InvalidPathException {
if (directory == null) {
String sep = FileSystems.getDefault().getSeparator();
@@ -73,6 +67,7 @@
}
}
+ @Override
public int compareTo(RelativePath other) {
return path.compareTo(other.path);
}