Author: oheger
Date: Sat Aug 4 14:58:31 2012
New Revision: 1369336
URL: http://svn.apache.org/viewvc?rev=1369336&view=rev
Log:
[CONFIGURATION-502] Improvements of basic features documentation.
Modified:
commons/proper/configuration/trunk/RELEASE-NOTES.txt
commons/proper/configuration/trunk/src/changes/changes.xml
commons/proper/configuration/trunk/src/site/xdoc/userguide/howto_basicfeatures.xml
Modified: commons/proper/configuration/trunk/RELEASE-NOTES.txt
URL:
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/RELEASE-NOTES.txt?rev=1369336&r1=1369335&r2=1369336&view=diff
==============================================================================
--- commons/proper/configuration/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/configuration/trunk/RELEASE-NOTES.txt Sat Aug 4 14:58:31
2012
@@ -44,6 +44,9 @@ BUG FIXES IN 1.9
IMPROVEMENTS AND NEW FEATURES IN 1.9
====================================
+* [CONFIGURATION-502]
+ Improvements of basic features and AbstractConfiguration documentation.
+
* [CONFIGURATION-501]
XMLPropertyListConfiguration no longer swallows exception caused by invalid
date properties. Now a warning message is logged.
Modified: commons/proper/configuration/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/changes/changes.xml?rev=1369336&r1=1369335&r2=1369336&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/changes/changes.xml (original)
+++ commons/proper/configuration/trunk/src/changes/changes.xml Sat Aug 4
14:58:31 2012
@@ -27,6 +27,9 @@
<body>
<release version="1.9" date="in SVN"
description="TBD">
+ <action dev="oheger" type="update" issue="CONFIGURATION-502"
due-to="Tino Sino">
+ Improvements of basic features and AbstractConfiguration documentation.
+ </action>
<action dev="oheger" type="add" issue="CONFIGURATION-501">
XMLPropertyListConfiguration no longer swallows exception caused by
invalid date properties. Now a warning message is logged.
Modified:
commons/proper/configuration/trunk/src/site/xdoc/userguide/howto_basicfeatures.xml
URL:
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/site/xdoc/userguide/howto_basicfeatures.xml?rev=1369336&r1=1369335&r2=1369336&view=diff
==============================================================================
---
commons/proper/configuration/trunk/src/site/xdoc/userguide/howto_basicfeatures.xml
(original)
+++
commons/proper/configuration/trunk/src/site/xdoc/userguide/howto_basicfeatures.xml
Sat Aug 4 14:58:31 2012
@@ -57,10 +57,11 @@
is thrown:
</p>
<source><![CDATA[
-// This will probably return null
+// This will return null if no property with key "NonExistingProperty" exists
String strValue = config.getString("NonExistingProperty");
-// This might throw an exception
+// This will throw a NoSuchElementException exception if no property with
+// key "NonExistingProperty" exists
long longValue = config.getLong("NonExistingProperty");
]]></source>
<p>