Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 362993b55 -> 9d066eb6c
PHOENIX-4192 Remove unnecessary cast in TestPropertyPolicy Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/d0f4904b Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/d0f4904b Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/d0f4904b Branch: refs/heads/4.x-HBase-0.98 Commit: d0f4904b13af06c7e8c2ca8c89a709f50cee0444 Parents: 362993b Author: James Taylor <[email protected]> Authored: Mon Sep 11 11:53:36 2017 -0700 Committer: James Taylor <[email protected]> Committed: Mon Sep 11 14:51:29 2017 -0700 ---------------------------------------------------------------------- .../test/java/org/apache/phoenix/query/TestPropertyPolicy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/d0f4904b/phoenix-core/src/test/java/org/apache/phoenix/query/TestPropertyPolicy.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/test/java/org/apache/phoenix/query/TestPropertyPolicy.java b/phoenix-core/src/test/java/org/apache/phoenix/query/TestPropertyPolicy.java index 8573bff..1835437 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/query/TestPropertyPolicy.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/query/TestPropertyPolicy.java @@ -17,14 +17,14 @@ */ package org.apache.phoenix.query; -import org.apache.hadoop.conf.Configuration; +import static java.util.Arrays.asList; import java.util.Collections; import java.util.HashSet; import java.util.Properties; import java.util.Set; -import static java.util.Arrays.asList; +import org.apache.hadoop.conf.Configuration; /** * Configuration factory that populates an {@link Configuration} with static and runtime @@ -39,7 +39,7 @@ public class TestPropertyPolicy implements PropertyPolicy { for (Object k : properties.keySet()) { if (propertiesKeyDisAllowed.contains(k)) - offendingProperties.put((String) k, properties.getProperty((String) k)); + offendingProperties.put(k, properties.getProperty((String) k)); } if (offendingProperties.size() > 0) throw new PropertyNotAllowedException(offendingProperties);
