You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by tl...@apache.org on 2006/10/27 05:12:05 UTC
svn commit: r468248 -
/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
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);
}
}