commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r787314 - in /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree: ConfigurationNode.java DefaultConfigurationNode.java
Date Mon, 22 Jun 2009 16:57:04 GMT
Author: ebourg
Date: Mon Jun 22 16:57:04 2009
New Revision: 787314

URL: http://svn.apache.org/viewvc?rev=787314&view=rev
Log:
Changed the return type of the clone() method in ConfigurationNode

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/ConfigurationNode.java
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/DefaultConfigurationNode.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/ConfigurationNode.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/ConfigurationNode.java?rev=787314&r1=787313&r2=787314&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/ConfigurationNode.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/ConfigurationNode.java
Mon Jun 22 16:57:04 2009
@@ -262,7 +262,8 @@
 
     /**
      * Returns a copy of this node.
+     * 
      * @return the copy
      */
-    Object clone();
+    ConfigurationNode clone();
 }

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/DefaultConfigurationNode.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/DefaultConfigurationNode.java?rev=787314&r1=787313&r2=787314&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/DefaultConfigurationNode.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/tree/DefaultConfigurationNode.java
Mon Jun 22 16:57:04 2009
@@ -425,12 +425,11 @@
      * @return a copy of this object
      */
     @Override
-    public Object clone()
+    public ConfigurationNode clone()
     {
         try
         {
-            DefaultConfigurationNode copy = (DefaultConfigurationNode) super
-                    .clone();
+            DefaultConfigurationNode copy = (DefaultConfigurationNode) super.clone();
             copy.initSubNodes();
             return copy;
         }



Mime
View raw message