commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r369893 - /jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
Date Tue, 17 Jan 2006 19:38:05 GMT
Author: oheger
Date: Tue Jan 17 11:37:58 2006
New Revision: 369893

URL: http://svn.apache.org/viewcvs?rev=369893&view=rev
Log:
Removed duplicate code in constructors of XMLConfiguration

Modified:
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java?rev=369893&r1=369892&r2=369893&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
Tue Jan 17 11:37:58 2006
@@ -137,9 +137,7 @@
      */
     public XMLConfiguration(String fileName) throws ConfigurationException
     {
-        this();
-        setFileName(fileName);
-        load();
+        super(fileName);
     }
 
     /**
@@ -151,12 +149,7 @@
      */
     public XMLConfiguration(File file) throws ConfigurationException
     {
-        this();
-        setFile(file);
-        if (file.exists())
-        {
-            load();
-        }
+        super(file);
     }
 
     /**
@@ -168,9 +161,7 @@
      */
     public XMLConfiguration(URL url) throws ConfigurationException
     {
-        this();
-        setURL(url);
-        load();
+        super(url);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message