[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Tom Elrod
tom.elrod at jboss.com
Mon Jul 17 17:21:28 EDT 2006
User: telrod
Date: 06/07/17 17:21:28
Modified: src/main/org/jboss/remoting InvokerLocator.java
Log:
JBREM-546 - changed equals() method of InvokerLocator to actually check locator uri characters equality instead of just checking if hash code of uri was equal.
Revision Changes Path
1.21 +8 -2 JBossRemoting/src/main/org/jboss/remoting/InvokerLocator.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InvokerLocator.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/InvokerLocator.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- InvokerLocator.java 12 Jul 2006 04:49:51 -0000 1.20
+++ InvokerLocator.java 17 Jul 2006 21:21:28 -0000 1.21
@@ -58,7 +58,7 @@
*
* @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
*/
public class InvokerLocator implements Serializable
{
@@ -71,7 +71,13 @@
private String uri;
private String originalURL;
+ /**
+ * Indicates should address binding to all network interfaces (i.e. 0.0.0.0)
+ */
private static final String ANY = "0.0.0.0";
+ /**
+ * Constant value for server bind address system property. Value is 'jboss.bind.address'.
+ */
private static final String SERVER_BIND_ADDRESS = "jboss.bind.address";
/**
@@ -328,7 +334,7 @@
*/
public boolean equals(Object obj)
{
- return obj != null && obj instanceof InvokerLocator && obj.hashCode() == hashCode();
+ return obj != null && obj instanceof InvokerLocator && uri.equals(((InvokerLocator)obj).getLocatorURI());
}
/**
More information about the jboss-cvs-commits
mailing list