[external system] avoid calls to File.getCanonicalPath() in hash map storage.

GitOrigin-RevId: 009cd2738fc0915ffcd5fac6d1f4bfec690cc93b
This commit is contained in:
Nikita Skvortsov
2019-08-01 16:03:35 +03:00
committed by intellij-monorepo-bot
parent 2a559ec31a
commit c9f91db207
@@ -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);
}
};