You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2017/09/11 18:53:47 UTC

phoenix git commit: PHOENIX-4192 Remove unnecessary cast in TestPropertyPolicy

Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-1.2 4bfb23aee -> 4020ef34a


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

Branch: refs/heads/4.x-HBase-1.2
Commit: 4020ef34ad910c9801043430e5950dfd5dfca2a0
Parents: 4bfb23a
Author: James Taylor <jt...@salesforce.com>
Authored: Mon Sep 11 11:53:36 2017 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Mon Sep 11 11:53:36 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/4020ef34/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);