geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsis...@apache.org
Subject svn commit: r327895 - /geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java
Date Mon, 24 Oct 2005 00:57:47 GMT
Author: jsisson
Date: Sun Oct 23 17:57:34 2005
New Revision: 327895

URL: http://svn.apache.org/viewcvs?rev=327895&view=rev
Log:
GERONIMO-1105 implement equals() and hashcode() methods as a result of the discussions on
cglib in for GERONIMO#1062, to keep implementations of CallbackFilter consistent.

Modified:
    geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java

Modified: geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java?rev=327895&r1=327894&r2=327895&view=diff
==============================================================================
--- geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java
(original)
+++ geronimo/trunk/modules/axis/src/java/org/apache/geronimo/axis/client/NoOverrideCallbackFilter.java
Sun Oct 23 17:57:34 2005
@@ -49,4 +49,29 @@
             return 1;
         }
     }
+    
+    public boolean equals(Object other) {
+        if (other == null) {
+            return false;
+        }
+        if (other == this) {
+            return true;
+        }
+
+        NoOverrideCallbackFilter otherFilter = null;
+        if (other instanceof NoOverrideCallbackFilter) {
+            otherFilter = (NoOverrideCallbackFilter) other;
+        }
+        else {
+            return false;
+        }
+                    
+      return superClass.equals(otherFilter.superClass);
+    }
+
+    public int hashCode()
+    {
+      return superClass.hashCode();
+    }
+    
 }



Mime
View raw message