cherry picking from rev.19592.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19701 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-07-14 21:33:15 +00:00
1 parent 4a533e530e
commit 37aa48b0ee
1 file changed
+17
+17
View File
@@ -429,6 +429,23 @@ public final class FilePath implements Serializable {
}));
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FilePath that = (FilePath) o;
if (channel != null ? !channel.equals(that.channel) : that.channel != null) return false;
return remote.equals(that.remote);
}
@Override
public int hashCode() {
return 31 * (channel != null ? channel.hashCode() : 0) + remote.hashCode();
}
/**
* Supported tar file compression methods.
*/