commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r787441 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java
Date Mon, 22 Jun 2009 23:22:47 GMT
Author: ebourg
Date: Mon Jun 22 23:22:46 2009
New Revision: 787441

URL: http://svn.apache.org/viewvc?rev=787441&view=rev
Log:
Return an InMemoryConfiguration instead of a HierarchicalConfiguration when the result of
subset() is empty

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java?rev=787441&r1=787440&r2=787441&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/InMemoryConfiguration.java
Mon Jun 22 23:22:46 2009
@@ -96,7 +96,7 @@
  * expression engine, which is used when a new <code>HierarchicalConfiguration</code>
  * instance is created. With the <code>setExpressionEngine()</code> method a
  * different expression engine can be set. For instance with
- * <code>{@link org.apache.commons.configuration2.tree.xpath.XPathExpressionEngine}</code>
+ * <code>{@link org.apache.commons.configuration2.expr.xpath.XPathExpressionEngine}</code>
  * there is an expression engine available that supports configuration keys in
  * XPATH syntax.</p>
  * <p>In addition to the events common for all configuration classes hierarchical
@@ -325,7 +325,7 @@
         {
             result.getRootNode().setValue(value);
         }
-        return (result.isEmpty()) ? new HierarchicalConfiguration() : result;
+        return (result.isEmpty()) ? new InMemoryConfiguration() : result;
     }
 
     /**



Mime
View raw message