Repository: phoenix
Updated Branches:
  refs/heads/master e6c1f01c5 -> 7cf7b3abb


PHOENIX-4128 CNF org/apache/commons/math3/exception/OutOfRangeException (Ethan 
Wang)


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/c83cec89
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/c83cec89
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/c83cec89

Branch: refs/heads/master
Commit: c83cec8903fd558777fb4dcd86a8bd67838f46e4
Parents: e6c1f01
Author: James Taylor <[email protected]>
Authored: Wed Aug 30 16:40:04 2017 -0700
Committer: James Taylor <[email protected]>
Committed: Wed Aug 30 16:40:04 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/c83cec89/phoenix-core/src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java 
b/phoenix-core/src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java
index 6a4ed6f..c9fd51b 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/parse/ConcreteTableNode.java
@@ -17,7 +17,6 @@
  */
 package org.apache.phoenix.parse;
 
-import org.apache.commons.math3.exception.OutOfRangeException;
 import org.apache.phoenix.util.SchemaUtil;
 
 /**
@@ -43,7 +42,7 @@ public abstract class ConcreteTableNode extends TableNode {
         if(tableSamplingRate==null){
                this.tableSamplingRate=DEFAULT_TABLE_SAMPLING_RATE;
         }else if(tableSamplingRate<0d||tableSamplingRate>100d){
-               throw new OutOfRangeException(tableSamplingRate, 0d, 100d);
+               throw new IllegalArgumentException("TableSamplingRate is out of 
bound of 0 and 100");
         }else{
                this.tableSamplingRate=tableSamplingRate;
         }

Reply via email to