geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject cvs commit: incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/cluster ClusterEvent.java
Date Sat, 17 Jul 2004 03:35:31 GMT
gdamour     2004/07/16 20:35:31

  Modified:    sandbox/messaging/src/java/org/apache/geronimo/messaging/cluster
                        ClusterEvent.java
  Log:
  A member can either be added or removed. So it was not possible to create a ClusterEvent
due to this
  wrong argument check.
  
  Revision  Changes    Path
  1.2       +2 -2      incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/cluster/ClusterEvent.java
  
  Index: ClusterEvent.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/sandbox/messaging/src/java/org/apache/geronimo/messaging/cluster/ClusterEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClusterEvent.java	10 Jun 2004 23:12:25 -0000	1.1
  +++ ClusterEvent.java	17 Jul 2004 03:35:31 -0000	1.2
  @@ -57,7 +57,7 @@
               throw new IllegalArgumentException("Cluster is required");
           } else if ( null == aMember ) {
               throw new IllegalArgumentException("Member is required");
  -        } else if ( aType != MEMBER_ADDED || aType != MEMBER_REMOVED ) {
  +        } else if ( aType != MEMBER_ADDED && aType != MEMBER_REMOVED ) {
               throw new IllegalArgumentException("Wrong type");
           }
           cluster = aCluster;
  
  
  

Mime
View raw message