apache commons-lang.jar源码问题
在EqualsBuilder中append(Object lhs,Object rhs)是不是应该把
if (lhs == null || rhs == null) {
this.setEquals(false);
return this;
}
放在:
if (lhs == rhs) {
return this;
}
前面????
因为lhs和rhs都为null的时候,if(lhs == rhs)为true,已经return了.if (lhs == null || rhs == null)将不会起到作用!