tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1058551 - /tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java
Date Thu, 13 Jan 2011 13:43:18 GMT
Author: markt
Date: Thu Jan 13 13:43:18 2011
New Revision: 1058551

URL: http://svn.apache.org/viewvc?rev=1058551&view=rev
Log:
Refactor to simplify code and avoid a Findbugs warning

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java

Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java?rev=1058551&r1=1058550&r2=1058551&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/ChannelCoordinator.java Thu Jan 13
13:43:18 2011
@@ -45,17 +45,13 @@ public class ChannelCoordinator extends 
     private ChannelSender clusterSender = new ReplicationTransmitter();
     private MembershipService membershipService = new McastService();
     
-    //override optionflag
-    protected int optionFlag = Channel.SEND_OPTIONS_BYTE_MESSAGE|Channel.SEND_OPTIONS_USE_ACK|Channel.SEND_OPTIONS_SYNCHRONIZED_ACK;
-    @Override
-    public int getOptionFlag() {return optionFlag;}
-    @Override
-    public void setOptionFlag(int flag) {optionFlag=flag;}
-    
     private int startLevel = 0;
 
     public ChannelCoordinator() {
-        
+        // Override default
+        this.optionFlag = Channel.SEND_OPTIONS_BYTE_MESSAGE |
+                Channel.SEND_OPTIONS_USE_ACK |
+                Channel.SEND_OPTIONS_SYNCHRONIZED_ACK;
     }
     
     public ChannelCoordinator(ChannelReceiver receiver,



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


Mime
View raw message