synapse-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hira...@apache.org
Subject svn commit: r912348 - /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java
Date Sun, 21 Feb 2010 13:40:32 GMT
Author: hiranya
Date: Sun Feb 21 13:40:32 2010
New Revision: 912348

URL: http://svn.apache.org/viewvc?rev=912348&view=rev
Log:
Removing the usage of Java 6 method


Modified:
    synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java

Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java?rev=912348&r1=912347&r2=912348&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java
(original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Axis2SynapseController.java
Sun Feb 21 13:40:32 2010
@@ -387,7 +387,9 @@
 
         Properties properties = SynapsePropertiesLoader.loadSynapseProperties();
         if (properties != null) {
-            for (String key : properties.stringPropertyNames()) {
+            Enumeration keys =  properties.keys();
+            while (keys.hasMoreElements()) {
+                String key = (String) keys.nextElement();
                 synapseConfiguration.setProperty(key, properties.getProperty(key));
             }
         }



Mime
View raw message