svn commit: r585686 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585686 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

doogie-3
Author: doogie
Date: Wed Oct 17 13:46:20 2007
New Revision: 585686

URL: http://svn.apache.org/viewvc?rev=585686&view=rev
Log:
Fix CCE in equals.

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java?rev=585686&r1=585685&r2=585686&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/collections/FlexibleMapAccessor.java Wed Oct 17 13:46:20 2007
@@ -250,6 +250,7 @@
     }
     
     public boolean equals(Object that) {
+        if (!(that instanceof FlexibleMapAccessor)) return false;
         FlexibleMapAccessor thatAcsr = (FlexibleMapAccessor) that;
         if (this.original == null) {
             if (thatAcsr.original == null) {