Removing JDK 5 specific code (String isEmpty)

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@898098 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
lresende 2010-01-11 22:39:27 +00:00
parent 1e9f9b1ecf
commit e90d1eb36c

View file

@ -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);
}