提交 f0aa6b5f 编写于 作者: K kohsuke

bug fix.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3787 71c3de6d-444a-0410-be80-ed276b4c234a
上级 182f95c0
......@@ -55,7 +55,13 @@ public final class Resource {
if (o == null || getClass() != o.getClass()) return false;
Resource that = (Resource) o;
return displayName.equals(that.displayName) && parent.equals(that.parent);
return displayName.equals(that.displayName) && eq(this.parent,that.parent);
}
private static boolean eq(Object lhs,Object rhs) {
if(lhs==rhs) return true;
if(lhs==null || rhs==null) return false;
return lhs.equals(rhs);
}
public int hashCode() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册