commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1481152 - /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
Date Fri, 10 May 2013 19:15:28 GMT
Author: oheger
Date: Fri May 10 19:15:28 2013
New Revision: 1481152

URL: http://svn.apache.org/r1481152
Log:
Do not call non-private, non-final method from constructor.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java?rev=1481152&r1=1481151&r2=1481152&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/BaseHierarchicalConfiguration.java
Fri May 10 19:15:28 2013
@@ -180,7 +180,7 @@ public class BaseHierarchicalConfigurati
      */
     public BaseHierarchicalConfiguration()
     {
-        setRootNode(new DefaultConfigurationNode());
+        rootNode = new DefaultConfigurationNode();
     }
 
     /**
@@ -199,7 +199,7 @@ public class BaseHierarchicalConfigurati
         {
             CloneVisitor visitor = new CloneVisitor();
             c.getRootNode().visit(visitor);
-            setRootNode(visitor.getClone());
+            rootNode = visitor.getClone();
         }
     }
 



Mime
View raw message