mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 10:05:24 +02:00
fix for 163381 - improper implementation of IRemoteFile.equals
This commit is contained in:
parent
f5601b37b0
commit
f76cf1434b
1 changed files with 4 additions and 1 deletions
|
@ -1125,7 +1125,10 @@ public abstract class RemoteFile implements IRemoteFile, IAdaptable, Comparable
|
||||||
String otherPath = other.getAbsolutePath();
|
String otherPath = other.getAbsolutePath();
|
||||||
String path = this.getAbsolutePath();
|
String path = this.getAbsolutePath();
|
||||||
String otherHost = other.getHostName();
|
String otherHost = other.getHostName();
|
||||||
return getHostName().equals(otherHost) && path.equals(otherPath) || otherPath.equals(path);
|
String otherHostAlias = other.getParentRemoteFileSubSystem().getHostAliasName();
|
||||||
|
return getHostName().equals(otherHost) && (path.equals(otherPath) || otherPath.equals(path));
|
||||||
|
//return getParentRemoteFileSubSystem().getHostAliasName().equals(otherHostAlias);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue