svn: Compare "java.io.File" files with "FileUtil.filesEqual()"

This commit is contained in:
Konstantin Kolosovsky
2018-07-04 16:43:21 +03:00
parent 511a7155cb
commit bfb1646e1b
@@ -1,8 +1,9 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.svn
import com.intellij.openapi.util.io.FileUtil.fileHashCode
import com.intellij.openapi.util.io.FileUtil.filesEqual
import org.jetbrains.idea.svn.api.Url
import java.io.File
// TODO: is17Copy is currently true in all constructor usages - remove this field and revise is17Copy() usages
@@ -11,8 +12,8 @@ class WorkingCopy(val file: File, val url: Url, val is17Copy: Boolean) {
if (this === other) return true
if (other !is WorkingCopy) return false
return file == other.file
return filesEqual(file, other.file)
}
override fun hashCode() = file.hashCode()
override fun hashCode() = fileHashCode(file)
}