tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r381136 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java
Date Sun, 26 Feb 2006 18:47:42 GMT
Author: fhanik
Date: Sun Feb 26 10:47:41 2006
New Revision: 381136

URL: http://svn.apache.org/viewcvs?rev=381136&view=rev
Log:
Remove the use of getName as the hash key. use the member itself

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java?rev=381136&r1=381135&r2=381136&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMembership.java
Sun Feb 26 10:47:41 2006
@@ -88,10 +88,10 @@
         if (  member.equals(local) ) return result;
 
         //return true if the membership has changed
-        MbrEntry entry = (MbrEntry)map.get(member.getName());
+        MbrEntry entry = (MbrEntry)map.get(member);
         if ( entry == null ) {
             entry = new MbrEntry(member);
-            map.put(member.getName(),entry);
+            map.put(member,entry);
             addMcastMember(member);
             result = true;
        } else {
@@ -176,7 +176,7 @@
             McastMember[] result = new McastMember[list.size()];
             list.toArray(result);
             for( int j=0; j<result.length; j++) {
-                map.remove(result[j].getName());
+                map.remove(result[j]);
                 removeMcastMember(result[j]);
             }
             return result;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message