openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1137828 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java
Date Tue, 21 Jun 2011 00:01:50 GMT
Author: dblevins
Date: Tue Jun 21 00:01:49 2011
New Revision: 1137828

URL: http://svn.apache.org/viewvc?rev=1137828&view=rev
Log:
OWB-586: Interceptors added by portable extensions don't work

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java?rev=1137828&r1=1137827&r2=1137828&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/custom/CustomInterceptor.java
Tue Jun 21 00:01:49 2011
@@ -138,4 +138,42 @@ public class CustomInterceptor<T> extend
         
     }
 
+    @Override
+    public int hashCode()
+    {
+        final int prime = 31;
+        int result = super.hashCode();
+        result = prime * result + ((actualInterceptor == null) ? 0 : actualInterceptor.hashCode());
+        return result;
+    }
+
+    @Override
+    public boolean equals(Object obj)
+    {
+        if (this == obj)
+        {
+            return true;
+        }
+        if (!super.equals(obj))
+        {
+            return false;
+        }
+        if (getClass() != obj.getClass())
+        {
+            return false;
+        }
+        CustomInterceptor other = (CustomInterceptor) obj;
+        if (actualInterceptor == null)
+        {
+            if (other.actualInterceptor != null)
+            {
+                return false;
+            }
+        }
+        else if (!actualInterceptor.equals(other.actualInterceptor))
+        {
+            return false;
+        }
+        return true;
+    }
 }



Mime
View raw message