[jboss-cvs] JBossAS SVN: r65481 - trunk/server/src/main/org/jboss/invocation/pooled/interfaces.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Sep 19 16:49:51 EDT 2007
Author: scottmarlownovell
Date: 2007-09-19 16:49:51 -0400 (Wed, 19 Sep 2007)
New Revision: 65481
Modified:
trunk/server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java
Log:
JBAS-4719 added equals + hashcode method
Modified: trunk/server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java
===================================================================
--- trunk/server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java 2007-09-19 20:17:03 UTC (rev 65480)
+++ trunk/server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java 2007-09-19 20:49:51 UTC (rev 65481)
@@ -400,6 +400,18 @@
}
}
+ public boolean equals(Object other)
+ {
+ if(! (other instanceof PooledInvokerProxy))
+ return false;
+ return (address.equals( ((PooledInvokerProxy)other).address ));
+ }
+
+ public int hashCode()
+ {
+ return address.hashCode();
+ }
+
protected void initPool()
{
synchronized (connectionPools)
More information about the jboss-cvs-commits
mailing list