Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.1 ee9962cd6 -> 2b78e48f4
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/23bb1c6f Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/23bb1c6f Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/23bb1c6f Branch: refs/heads/4.x-HBase-1.1 Commit: 23bb1c6fcd20b548ebf01c0763d88e8618c09b08 Parents: ee9962c Author: James Taylor <[email protected]> Authored: Mon Sep 11 11:53:36 2017 -0700 Committer: James Taylor <[email protected]> Committed: Mon Sep 11 14:49:23 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/23bb1c6f/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);
