fluo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject incubator-fluo git commit: Disabled delimiter parsing in save methods
Date Fri, 08 Jul 2016 21:57:48 GMT
Repository: incubator-fluo
Updated Branches:
  refs/heads/master 16ded1c28 -> e72a93188


Disabled delimiter parsing in save methods

* Fixes bug that was causing comma to be prepended with slash when
observer config was was saved.
* Bug found when using phrasecount application


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

Branch: refs/heads/master
Commit: e72a93188b479e2a2fc389ab6018674ab674c879
Parents: 16ded1c
Author: Mike Walch <mwalch@gmail.com>
Authored: Fri Jul 8 16:06:17 2016 -0400
Committer: Mike Walch <mwalch@gmail.com>
Committed: Fri Jul 8 16:06:22 2016 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/fluo/api/config/SimpleConfiguration.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fluo/blob/e72a9318/modules/api/src/main/java/org/apache/fluo/api/config/SimpleConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/api/src/main/java/org/apache/fluo/api/config/SimpleConfiguration.java
b/modules/api/src/main/java/org/apache/fluo/api/config/SimpleConfiguration.java
index 86ff1b7..4492679 100644
--- a/modules/api/src/main/java/org/apache/fluo/api/config/SimpleConfiguration.java
+++ b/modules/api/src/main/java/org/apache/fluo/api/config/SimpleConfiguration.java
@@ -161,6 +161,7 @@ public class SimpleConfiguration {
 
   public void save(File file) {
     PropertiesConfiguration pconf = new PropertiesConfiguration();
+    pconf.setDelimiterParsingDisabled(true);
     pconf.append(internalConfig);
     try {
       pconf.save(file);
@@ -172,6 +173,7 @@ public class SimpleConfiguration {
 
   public void save(OutputStream out) {
     PropertiesConfiguration pconf = new PropertiesConfiguration();
+    pconf.setDelimiterParsingDisabled(true);
     pconf.append(internalConfig);
     try {
       pconf.save(out);


Mime
View raw message