diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 22:41:17 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-11 22:41:17 +0000 |
commit | d3cd05a1e95cd885efbb9853e05d77039b5d0376 (patch) | |
tree | 703e7985e8333879f22fc3336d3d09145e26ceab /sca-java-1.x/branches/sca-java-1.6/modules | |
parent | e90d1eb36c67e87c70f06162ff3c1b4448bc2411 (diff) |
Removing JDK 5 specific code (String isEmpty)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@898099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6/modules')
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.6/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java b/sca-java-1.x/branches/sca-java-1.6/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java index 98f7215928..d5db3dca0d 100644 --- a/sca-java-1.x/branches/sca-java-1.6/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java +++ b/sca-java-1.x/branches/sca-java-1.6/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java @@ -739,8 +739,7 @@ public class Interface2WSDLGenerator { // double check that there is a "tns" namespace shortname specified String tnsNamespace = refSchema.getDocumentElement().getAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:tns"); - if (tnsNamespace == null || - tnsNamespace.isEmpty()){ + if (tnsNamespace == null || tnsNamespace.length() == 0){ refSchema.getDocumentElement().setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:tns", defaultNamespace); } |