mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
svn: Compare "java.io.File" files with "FileUtil.filesEqual()"
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user