svn commit: r926915 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java

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

svn commit: r926915 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java

doogie-3
Author: doogie
Date: Wed Mar 24 03:18:35 2010
New Revision: 926915

URL: http://svn.apache.org/viewvc?rev=926915&view=rev
Log:
Implement hashCode, which is required when equals is implemented.

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

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java?rev=926915&r1=926914&r2=926915&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java Wed Mar 24 03:18:35 2010
@@ -794,6 +794,11 @@ public class ObjectType {
         }
 
         @Override
+        public int hashCode() {
+            return toString().hashCode();
+        }
+
+        @Override
         public boolean equals(Object other) {
             if (other instanceof NullObject) {
                 // should do equality of object? don't think so, just same type