This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1_5
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 6c7a3dc78d107c895ae45aac4dae8b4e927d09b4
Author: Sagara Gunathunga <sag...@apache.org>
AuthorDate: Mon Nov 14 23:06:14 2011 +0000

    Merged r1201957 to the 1.5 branch.
---
 .../http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
 
b/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
index 95af246..ecd156b 100644
--- 
a/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
+++ 
b/modules/transport/http/src/org/apache/axis2/transport/http/SimpleHTTPServer.java
@@ -38,7 +38,6 @@ import org.apache.axis2.util.OptionsParser;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-import javax.xml.namespace.QName;
 import java.io.File;
 import java.io.IOException;
 import java.util.Iterator;
@@ -166,11 +165,11 @@ public class SimpleHTTPServer implements 
TransportListener {
 
             // should all transports be started? specified as "-t all"
             if (startAllTransports) {
-                Iterator iter = configctx.getAxisConfiguration().
+                Iterator<String> iter = configctx.getAxisConfiguration().
                         getTransportsIn().keySet().iterator();
                 while (iter.hasNext()) {
-                    QName trp = (QName) iter.next();
-                    if (!new QName(Constants.TRANSPORT_HTTP).equals(trp)) {
+                    String trp = iter.next();
+                    if (!Constants.TRANSPORT_HTTP.equals(trp)) {
                         trsIn = (TransportInDescription)
                                 
configctx.getAxisConfiguration().getTransportsIn().get(trp);
                         listenerManager.addListener(trsIn, false);

Reply via email to