commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r594275 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
Date Mon, 12 Nov 2007 19:54:50 GMT
Author: bayard
Date: Mon Nov 12 11:54:49 2007
New Revision: 594275

URL: http://svn.apache.org/viewvc?rev=594275&view=rev
Log:
Fixing javadoc - it's != and not ==. Returning false because two objects have the same class
is dumb. This was my dumb typing for LANG-353

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java?rev=594275&r1=594274&r2=594275&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
(original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
Mon Nov 12 11:54:49 2007
@@ -48,7 +48,7 @@
  * public boolean equals(Object obj) {
  *   if (obj == null) { return false; }
  *   if (obj == this) { return true; }
- *   if (obj.getClass() == getClass()) {
+ *   if (obj.getClass() != getClass()) {
  *     return false;
  *   }
  *   MyClass rhs = (MyClass) obj;



Mime
View raw message