Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 75339 invoked from network); 17 Jan 2006 19:38:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 19:38:31 -0000 Received: (qmail 79789 invoked by uid 500); 17 Jan 2006 19:38:27 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 79722 invoked by uid 500); 17 Jan 2006 19:38:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 79711 invoked by uid 500); 17 Jan 2006 19:38:27 -0000 Received: (qmail 79702 invoked by uid 99); 17 Jan 2006 19:38:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 11:38:27 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Jan 2006 11:38:26 -0800 Received: (qmail 74051 invoked by uid 65534); 17 Jan 2006 19:38:05 -0000 Message-ID: <20060117193805.74046.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commons-cvs@jakarta.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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