cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r956066 - /cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Date Fri, 18 Jun 2010 17:46:53 GMT
Author: dkulp
Date: Fri Jun 18 17:46:53 2010
New Revision: 956066

URL: http://svn.apache.org/viewvc?rev=956066&view=rev
Log:
Helios eclipse compiler finds some dead code

Modified:
    cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java

Modified: cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java?rev=956066&r1=956065&r2=956066&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
(original)
+++ cxf/trunk/tools/wsdlto/core/src/main/java/org/apache/cxf/tools/wsdlto/WSDLToJavaContainer.java
Fri Jun 18 17:46:53 2010
@@ -296,7 +296,6 @@ public class WSDLToJavaContainer extends
             }
         }
         String serviceName = (String)context.get(ToolConstants.CFG_SERVICENAME);
-        QName qname = null;
         for (Definition definition : defs) {
             if (serviceName != null) {
                 for (Iterator<QName> ite = definition.getServices().keySet().iterator();
ite.hasNext();) {
@@ -308,12 +307,8 @@ public class WSDLToJavaContainer extends
             }
         }
 
-        if (qname == null) {
-            Message msg = new Message("SERVICE_NOT_FOUND", LOG, new Object[] {serviceName});
-            throw new ToolException(msg);
-        }
-
-        return qname;
+        Message msg = new Message("SERVICE_NOT_FOUND", LOG, new Object[] {serviceName});
+        throw new ToolException(msg);
     }
 
     public void loadDefaultNSPackageMapping(ToolContext env) {



Mime
View raw message