Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 73c8156d5 -> c7bbdf0e8
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/a081e9eb Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/a081e9eb Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/a081e9eb Branch: refs/heads/4.x-HBase-0.98 Commit: a081e9eb6dc227e408e882a82fdc9bd7d0d3755f Parents: 73c8156 Author: James Taylor <[email protected]> Authored: Wed Aug 30 16:40:04 2017 -0700 Committer: James Taylor <[email protected]> Committed: Wed Aug 30 16:56:10 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/a081e9eb/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; }
