[jboss-cvs] JBossAS SVN: r114682 - branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 3 03:24:24 EST 2014


Author: baranowb
Date: 2014-02-03 03:24:23 -0500 (Mon, 03 Feb 2014)
New Revision: 114682

Modified:
   branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicyQuorum.java
   branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicySimpleQuorum.java
Log:
Follow up for JBPAPP-10724 -- r114389 - this commit makes policies behave alike

Modified: branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicyQuorum.java
===================================================================
--- branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicyQuorum.java	2014-01-31 19:42:42 UTC (rev 114681)
+++ branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicyQuorum.java	2014-02-03 08:24:23 UTC (rev 114682)
@@ -36,8 +36,8 @@
  */
 public class HASingletonElectionPolicyQuorum implements HASingletonElectionPolicyQuorumMBean, HASingletonElectionPolicy {
     protected final Logger logger = Logger.getLogger(getClass());
-    // Attributes
-    private int quorum;
+    // Attributes: default = 1.
+    private int quorum = 1;
 
     @Override
     public void setQuorum(final int q) {

Modified: branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicySimpleQuorum.java
===================================================================
--- branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicySimpleQuorum.java	2014-01-31 19:42:42 UTC (rev 114681)
+++ branches/JBPAPP_5/cluster/src/main/org/jboss/ha/singleton/HASingletonElectionPolicySimpleQuorum.java	2014-02-03 08:24:23 UTC (rev 114682)
@@ -40,9 +40,6 @@
 
     @Override
     public void setPosition(int pos) {
-        if (pos < 0) {
-            throw new IllegalArgumentException("Position must be positive!");
-        }
         this.position = pos;
     }
 



More information about the jboss-cvs-commits mailing list