tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject [incubator-tamaya-sandbox] 09/09: Fixed compile issues.
Date Mon, 17 Dec 2018 19:54:52 GMT
This is an automated email from the ASF dual-hosted git repository.

anatole pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya-sandbox.git

commit 7a720a3341ff4ee65d312bf63ecfd9ffb01dd92f
Author: Anatole Tresch <atsticks@gmail.com>
AuthorDate: Mon Dec 17 20:54:10 2018 +0100

    Fixed compile issues.
---
 .../src/main/java/org/apache/tamaya/commons/IniConfigurationFormat.java | 2 +-
 .../src/main/java/org/apache/tamaya/commons/XmlConfigurationFormat.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/apache-commons/src/main/java/org/apache/tamaya/commons/IniConfigurationFormat.java
b/apache-commons/src/main/java/org/apache/tamaya/commons/IniConfigurationFormat.java
index bf03fcf..6b4b11c 100644
--- a/apache-commons/src/main/java/org/apache/tamaya/commons/IniConfigurationFormat.java
+++ b/apache-commons/src/main/java/org/apache/tamaya/commons/IniConfigurationFormat.java
@@ -70,7 +70,7 @@ public class IniConfigurationFormat implements ConfigurationFormat {
                 Iterator<String> keyIter = sectionConfig.getKeys();
                 while (keyIter.hasNext()) {
                     String key = keyIter.next();
-                    ((ObjectValue) sectionNode).setField(key, sectionConfig.getString(key));
+                    ((ObjectValue) sectionNode).setValue(key, sectionConfig.getString(key));
                 }
             }
         } catch (Exception e) {
diff --git a/apache-commons/src/main/java/org/apache/tamaya/commons/XmlConfigurationFormat.java
b/apache-commons/src/main/java/org/apache/tamaya/commons/XmlConfigurationFormat.java
index 54aa401..65a1db3 100644
--- a/apache-commons/src/main/java/org/apache/tamaya/commons/XmlConfigurationFormat.java
+++ b/apache-commons/src/main/java/org/apache/tamaya/commons/XmlConfigurationFormat.java
@@ -63,7 +63,7 @@ public class XmlConfigurationFormat implements ConfigurationFormat {
             Iterator<String> keyIter = commonXmlConfiguration.getKeys();
             while (keyIter.hasNext()) {
                 String key = keyIter.next();
-                ((ObjectValue) data).setField(key, commonXmlConfiguration.getString(key));
+                ((ObjectValue) data).setValue(key, commonXmlConfiguration.getString(key));
             }
         } catch (Exception e) {
             throw new ConfigException("Failed to parse xml-file format from " + name, e);


Mime
View raw message