accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [2/3] accumulo git commit: ACCUMULO-3870 Set listDelimiter on Configuration object to suppress warning
Date Fri, 29 May 2015 03:02:25 GMT
ACCUMULO-3870 Set listDelimiter on Configuration object to suppress warning


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

Branch: refs/heads/master
Commit: afdd2e6aab92ed849329ab33f71baf843b4d3110
Parents: bb73e90
Author: Josh Elser <elserj@apache.org>
Authored: Thu May 28 23:01:43 2015 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Thu May 28 23:01:43 2015 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/core/rpc/SaslConnectionParams.java   | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/afdd2e6a/core/src/main/java/org/apache/accumulo/core/rpc/SaslConnectionParams.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/rpc/SaslConnectionParams.java b/core/src/main/java/org/apache/accumulo/core/rpc/SaslConnectionParams.java
index 956fee2..1550f03 100644
--- a/core/src/main/java/org/apache/accumulo/core/rpc/SaslConnectionParams.java
+++ b/core/src/main/java/org/apache/accumulo/core/rpc/SaslConnectionParams.java
@@ -130,7 +130,13 @@ public class SaslConnectionParams {
   protected final Map<String,String> saslProperties;
 
   public SaslConnectionParams(AccumuloConfiguration conf, AuthenticationToken token) {
-    this(new ClientConfiguration(new MapConfiguration(getProperties(conf))), token);
+    this(new ClientConfiguration(createMapConfiguration(conf)), token);
+  }
+
+  private static MapConfiguration createMapConfiguration(AccumuloConfiguration conf) {
+    MapConfiguration mapConf = new MapConfiguration(getProperties(conf));
+    mapConf.setListDelimiter('\0');
+    return mapConf;
   }
 
   public SaslConnectionParams(ClientConfiguration conf, AuthenticationToken token) {


Mime
View raw message