db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1027847 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
Date Wed, 27 Oct 2010 07:39:39 GMT
Author: kahatlen
Date: Wed Oct 27 07:39:39 2010
New Revision: 1027847

URL: http://svn.apache.org/viewvc?rev=1027847&view=rev
Log:
DERBY-4815: Override mechanism for modules.properties works backwards

Check the property key, not the property value, when trying to detect
duplicate keys.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java?rev=1027847&r1=1027846&r2=1027847&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java
Wed Oct 27 07:39:39 2010
@@ -1265,7 +1265,7 @@ nextModule:
                         for( Enumeration newKeys = otherList.keys(); newKeys.hasMoreElements()
;)
                         {
                             String key = (String) newKeys.nextElement();
-                            if( moduleList.contains( key))
+                            if (moduleList.containsKey(key))
                                 // RESOLVE how do we localize messages before we have finished
initialization?
                                 report( "Ignored duplicate property " + key + " in " + modulesPropertiesURL.toString());
                             else



Mime
View raw message