Author: mbenson
Date: Fri Feb 26 23:23:27 2010
New Revision: 916859
URL: http://svn.apache.org/viewvc?rev=916859&view=rev
Log:
add == check to equals()
Modified:
ant/antlibs/props/trunk/src/main/org/apache/ant/props/NestedPropertyExpander.java
Modified:
ant/antlibs/props/trunk/src/main/org/apache/ant/props/NestedPropertyExpander.java
URL:
http://svn.apache.org/viewvc/ant/antlibs/props/trunk/src/main/org/apache/ant/props/NestedPropertyExpander.java?rev=916859&r1=916858&r2=916859&view=diff
==============================================================================
---
ant/antlibs/props/trunk/src/main/org/apache/ant/props/NestedPropertyExpander.java
(original)
+++
ant/antlibs/props/trunk/src/main/org/apache/ant/props/NestedPropertyExpander.java
Fri Feb 26 23:23:27 2010
@@ -69,7 +69,7 @@
* {...@inheritdoc}
*/
public boolean equals(Object obj) {
- return obj instanceof NestedPropertyExpander && obj.hashCode() ==
hashCode();
+ return obj == this || obj instanceof NestedPropertyExpander &&
obj.hashCode() == hashCode();
}
/**