cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: r468248 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Date Fri, 27 Oct 2006 03:12:05 GMT
Author: tli
Date: Thu Oct 26 20:12:04 2006
New Revision: 468248

URL: http://svn.apache.org/viewvc?view=rev&rev=468248
Log:
fix the pmd error

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?view=diff&rev=468248&r1=468247&r2=468248
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Thu Oct 26 20:12:04 2006
@@ -188,7 +188,7 @@
                 if (schemaElem != null) {
                     for (Object prefix : def.getNamespaces().keySet()) {
                         String ns = (String)def.getNamespaces().get(prefix);
-                        if (!prefix.equals("") && !schemaElem.hasAttribute("xmlns:"
+ prefix)) {
+                        if (!"".equals(prefix) && !schemaElem.hasAttribute("xmlns:"
+ prefix)) {
                             schemaElem.setAttribute("xmlns:" + prefix, ns);
                         }
                     }



Mime
View raw message