You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/01 20:45:02 UTC
[commons-configuration] branch master updated: CONFIGURATION-773:
User's Guide > Properties files > Saving - small documentation bugs (#41)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
The following commit(s) were added to refs/heads/master by this push:
new 61cca78 CONFIGURATION-773: User's Guide > Properties files > Saving - small documentation bugs (#41)
61cca78 is described below
commit 61cca7868649e7c5739009fe453157c454ff8a29
Author: dandragut <49...@users.noreply.github.com>
AuthorDate: Sun Dec 1 22:44:33 2019 +0200
CONFIGURATION-773: User's Guide > Properties files > Saving - small documentation bugs (#41)
---
src/site/xdoc/userguide/howto_properties.xml | 4 ++--
src/site/xdoc/userguide_v1.10/howto_properties.xml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/site/xdoc/userguide/howto_properties.xml b/src/site/xdoc/userguide/howto_properties.xml
index 4461b16..0f8159a 100644
--- a/src/site/xdoc/userguide/howto_properties.xml
+++ b/src/site/xdoc/userguide/howto_properties.xml
@@ -214,9 +214,9 @@ FileBasedConfigurationBuilder<FileBasedConfiguration> builder =
new FileBasedConfigurationBuilder<FileBasedConfiguration>(PropertiesConfiguration.class)
.configure(params.properties()
.setFileName("usergui.properties")
- .setListDelimiterHandler(new DefaultListDelimiterHandler(','));
+ .setListDelimiterHandler(new DefaultListDelimiterHandler(',')));
Configuration config = builder.getConfiguration();
-config.setProperty("colors.background", "#000000);
+config.setProperty("colors.background", "#000000");
builder.save();
]]></source>
<p>
diff --git a/src/site/xdoc/userguide_v1.10/howto_properties.xml b/src/site/xdoc/userguide_v1.10/howto_properties.xml
index d01326f..c115db9 100644
--- a/src/site/xdoc/userguide_v1.10/howto_properties.xml
+++ b/src/site/xdoc/userguide_v1.10/howto_properties.xml
@@ -154,7 +154,7 @@ colors.pie = #0000FF;
</p>
<source>
PropertiesConfiguration config = new PropertiesConfiguration("usergui.properties");
-config.setProperty("colors.background", "#000000);
+config.setProperty("colors.background", "#000000");
config.save();
</source>
<p>
@@ -162,7 +162,7 @@ config.save();
</p>
<source>
PropertiesConfiguration config = new PropertiesConfiguration("usergui.properties");
-config.setProperty("colors.background", "#000000);
+config.setProperty("colors.background", "#000000");
config.save("usergui.backup.properties);
</source>
<p>