mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify expression, less runtime checks
This commit is contained in:
@@ -853,7 +853,7 @@ public class FileUtil extends FileUtilRt {
|
||||
path1 = toCanonicalPath(path1);
|
||||
path2 = toCanonicalPath(path2);
|
||||
//noinspection ConstantConditions
|
||||
return SystemInfo.isFileSystemCaseSensitive ? path1.equals(path2) : path1.equalsIgnoreCase(path2);
|
||||
return PATH_HASHING_STRATEGY.equals(path1, path2);
|
||||
}
|
||||
|
||||
public static int compareFiles(@Nullable File file1, @Nullable File file2) {
|
||||
|
||||
Reference in New Issue
Block a user