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 2014/11/13 06:34:42 UTC

phoenix git commit: Revert PropertiesUtil change

Repository: phoenix
Updated Branches:
  refs/heads/4.2 d365f2193 -> f1414ab8d


Revert PropertiesUtil change


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/f1414ab8
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f1414ab8
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f1414ab8

Branch: refs/heads/4.2
Commit: f1414ab8d073a5bb1e679dfb35e1d19b957cbd7c
Parents: d365f21
Author: James Taylor <jt...@salesforce.com>
Authored: Wed Nov 12 21:32:30 2014 -0800
Committer: James Taylor <jt...@salesforce.com>
Committed: Wed Nov 12 21:33:39 2014 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/phoenix/util/PropertiesUtil.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/f1414ab8/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
index a69947e..d894e58 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/util/PropertiesUtil.java
@@ -17,7 +17,6 @@
  */
 package org.apache.phoenix.util;
 
-import java.util.Map.Entry;
 import java.util.Properties;
 
 public class PropertiesUtil {
@@ -32,10 +31,8 @@ public class PropertiesUtil {
      */
     public static Properties deepCopy(Properties properties) {
         Properties newProperties = new Properties();
-        for (Entry<Object, Object> entry : properties.entrySet()) {
-            String key = entry.getKey().toString();
-            String value = entry.getValue().toString();
-            newProperties.put(key, value);
+        for (String pName : properties.stringPropertyNames()) {
+            newProperties.setProperty(pName, properties.getProperty(pName));
         }
         return newProperties;
     }