Repository: phoenix
Updated Branches:
  refs/heads/master 7e45e9ea1 -> 9e5cd3ffe


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/63b71caa
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/63b71caa
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/63b71caa

Branch: refs/heads/master
Commit: 63b71caadaeb7bebf66c20fb3a1ddc7c3adbff13
Parents: 7e45e9e
Author: James Taylor <[email protected]>
Authored: Mon Sep 11 11:53:36 2017 -0700
Committer: James Taylor <[email protected]>
Committed: Mon Sep 11 14:53:25 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/63b71caa/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);

Reply via email to