commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1733652 - /commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml
Date Fri, 04 Mar 2016 21:12:30 GMT
Author: oheger
Date: Fri Mar  4 21:12:29 2016
New Revision: 1733652

URL: http://svn.apache.org/viewvc?rev=1733652&view=rev
Log:
[CONFIGURATION-620] Fixed invalid examples in user guide. Ported from trunk.

Modified:
    commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml

Modified: commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml?rev=1733652&r1=1733651&r2=1733652&view=diff
==============================================================================
--- commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml
(original)
+++ commons/proper/configuration/branches/RELEASE_2_0_beta2_BRANCH/src/site/xdoc/userguide/howto_filebased.xml
Fri Mar  4 21:12:29 2016
@@ -89,8 +89,8 @@ Parameters params = new Parameters();
 // Read data from this file
 File propertiesFile = new File("config.properties");
 
-FileBasedConfigurationBuilder<Configuration> builder =
-    new FileBasedConfigurationBuilder<Configuration>(PropertiesConfiguration.class)
+FileBasedConfigurationBuilder<FileBasedConfiguration> builder =
+    new FileBasedConfigurationBuilder<FileBasedConfiguration>(PropertiesConfiguration.class)
     .configure(params.fileBased()
         .setFile(propertiesFile));
 try
@@ -156,8 +156,8 @@ catch(ConfigurationException cex)
 	  <code>setAutoSave()</code> method as shown in the following example:
 	</p>
         <source><![CDATA[
-FileBasedConfigurationBuilder<Configuration> builder =
-    new FileBasedConfigurationBuilder<Configuration>(PropertiesConfiguration.class)
+FileBasedConfigurationBuilder<FileBasedConfiguration> builder =
+    new FileBasedConfigurationBuilder<FileBasedConfiguration>(PropertiesConfiguration.class)
     .configure(params.fileBased()
         .setFile(new File("config.properties")));
 // enable auto save mode



Mime
View raw message