Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.2 e1806e7f8 -> 8924fb108
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/f99bb307 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f99bb307 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f99bb307 Branch: refs/heads/4.x-HBase-1.2 Commit: f99bb30783dd596746b3b06327790ca2cf5b3439 Parents: e1806e7 Author: James Taylor <[email protected]> Authored: Wed Aug 30 16:40:04 2017 -0700 Committer: James Taylor <[email protected]> Committed: Wed Aug 30 17:33:16 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/f99bb307/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; }
