mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[external system] avoid calls to File.getCanonicalPath() in hash map storage.
GitOrigin-RevId: 009cd2738fc0915ffcd5fac6d1f4bfec690cc93b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2a559ec31a
commit
c9f91db207
+2
-2
@@ -118,12 +118,12 @@ public class ExternalSystemUtil {
|
||||
new TObjectHashingStrategy<Pair<ProjectSystemId, File>>() {
|
||||
@Override
|
||||
public int computeHashCode(Pair<ProjectSystemId, File> object) {
|
||||
return object.first.hashCode() + fileHashCode(object.second);
|
||||
return object.first.hashCode() + FileUtil.fileHashCode(object.second);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Pair<ProjectSystemId, File> o1, Pair<ProjectSystemId, File> o2) {
|
||||
return o1.first.equals(o2.first) && filesEqual(o1.second, o2.second);
|
||||
return o1.first.equals(o2.first) && FileUtil.filesEqual(o1.second, o2.second);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user