< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/trax/SAX2DOM.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()

@@ -195,11 +195,11 @@
             // checking if Namespace processing is being done
             String attQName = attrs.getQName(i);
             String attURI = attrs.getURI(i);
             String type = (attrs.getType(i) == null) ?
                     XMLSymbols.fCDATASymbol : attrs.getType(i);
-            if (attrs.getLocalName(i).equals("")) {
+            if (attrs.getLocalName(i).isEmpty()) {
                 tmp.setAttribute(attQName, attrs.getValue(i));
                 if (type.equals("ID")) {
                     tmp.setIdAttribute(attQName, true);
                 }
             } else {
< prev index next >