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:32:42 UTC
[2/2] phoenix git commit: Revert PropertiesUtil change
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/69c95786
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/69c95786
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/69c95786
Branch: refs/heads/4.0
Commit: 69c95786565c625427fb2d013d64d549a9ff2b8f
Parents: af968f3
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:32:30 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/69c95786/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;
}