From c9f91db207788a429d4385ffaaba1e77e50c16fa Mon Sep 17 00:00:00 2001 From: Nikita Skvortsov Date: Thu, 1 Aug 2019 15:13:24 +0300 Subject: [PATCH] [external system] avoid calls to File.getCanonicalPath() in hash map storage. GitOrigin-RevId: 009cd2738fc0915ffcd5fac6d1f4bfec690cc93b --- .../openapi/externalSystem/util/ExternalSystemUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java index 9ec772adea73..6531f331c20e 100644 --- a/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java +++ b/platform/external-system-impl/src/com/intellij/openapi/externalSystem/util/ExternalSystemUtil.java @@ -118,12 +118,12 @@ public class ExternalSystemUtil { new TObjectHashingStrategy>() { @Override public int computeHashCode(Pair object) { - return object.first.hashCode() + fileHashCode(object.second); + return object.first.hashCode() + FileUtil.fileHashCode(object.second); } @Override public boolean equals(Pair o1, Pair o2) { - return o1.first.equals(o2.first) && filesEqual(o1.second, o2.second); + return o1.first.equals(o2.first) && FileUtil.filesEqual(o1.second, o2.second); } };