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/3572cfc1 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/3572cfc1 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/3572cfc1 Branch: refs/heads/4.x-HBase-1.1 Commit: 3572cfc1e5ca7e5e36fcfa6a980de5723fa41fbc Parents: 6ac72c4 Author: James Taylor <[email protected]> Authored: Wed Aug 30 16:40:04 2017 -0700 Committer: James Taylor <[email protected]> Committed: Wed Aug 30 17:32:24 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/3572cfc1/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; }
