commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1573343 - in /commons/proper/configuration/branches/immutableNodes/src: main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java
Date Sun, 02 Mar 2014 19:46:47 GMT
Author: oheger
Date: Sun Mar  2 19:46:46 2014
New Revision: 1573343

URL: http://svn.apache.org/r1573343
Log:
AbstractHierarchicalConfiguration now implements the modified HierarchicalConfiguration interface.

Modified:
    commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java
    commons/proper/configuration/branches/immutableNodes/src/test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java

Modified: commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java?rev=1573343&r1=1573342&r2=1573343&view=diff
==============================================================================
--- commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java
(original)
+++ commons/proper/configuration/branches/immutableNodes/src/main/java/org/apache/commons/configuration/AbstractHierarchicalConfiguration.java
Sun Mar  2 19:46:46 2014
@@ -160,7 +160,7 @@ import org.apache.commons.configuration.
  * @param  <T> the type of the nodes managed by this hierarchical configuration
  */
 public abstract class AbstractHierarchicalConfiguration<T> extends AbstractConfiguration
-    implements Cloneable, NodeKeyResolver<T>
+    implements Cloneable, NodeKeyResolver<T>, HierarchicalConfiguration<T>
 {
     /**
      * Constant for the clear tree event.

Modified: commons/proper/configuration/branches/immutableNodes/src/test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/immutableNodes/src/test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java?rev=1573343&r1=1573342&r2=1573343&view=diff
==============================================================================
--- commons/proper/configuration/branches/immutableNodes/src/test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java
(original)
+++ commons/proper/configuration/branches/immutableNodes/src/test/java/org/apache/commons/configuration/TestAbstractHierarchicalConfiguration.java
Sun Mar  2 19:46:46 2014
@@ -910,5 +910,50 @@ public class TestAbstractHierarchicalCon
         {
             return new InMemoryNodeModel(getModel().getRootNode());
         }
+
+        public SubnodeConfiguration configurationAt(String key,
+                boolean supportUpdates)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public SubnodeConfiguration configurationAt(String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public List<SubnodeConfiguration> configurationsAt(String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public List<SubnodeConfiguration> childConfigurationsAt(String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public ImmutableHierarchicalConfiguration immutableConfigurationAt(
+                String key, boolean supportUpdates)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public ImmutableHierarchicalConfiguration immutableConfigurationAt(
+                String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public List<ImmutableHierarchicalConfiguration> immutableConfigurationsAt(
+                String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
+
+        public List<ImmutableHierarchicalConfiguration> immutableChildConfigurationsAt(
+                String key)
+        {
+            throw new UnsupportedOperationException("Unexpected method call!");
+        }
     }
 }



Mime
View raw message