cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1486912 - /cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Date Tue, 28 May 2013 12:52:38 GMT
Author: ay
Date: Tue May 28 12:52:37 2013
New Revision: 1486912

URL: http://svn.apache.org/r1486912
Log:
replace jdk16 Properties.stringProperties usage

Modified:
    cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java

Modified: cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java?rev=1486912&r1=1486911&r2=1486912&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
(original)
+++ cxf/branches/2.6.x-fixes/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/AbstractHTTPServlet.java
Tue May 28 12:52:37 2013
@@ -120,8 +120,8 @@ public abstract class AbstractHTTPServle
             try {
                 Properties props = new Properties();
                 props.load(is);
-                for (String name : props.stringPropertyNames()) {
-                    staticContentTypes.put(name, props.getProperty(name));
+                for (Object name : props.keySet()) {
+                    staticContentTypes.put((String)name, props.getProperty((String)name));
                 }
             } catch (IOException ex) {
                 String message = new org.apache.cxf.common.i18n.Message("STATIC_RESOURCES_MAP_LOAD_FAILURE",



Mime
View raw message