< prev index next >

src/java.base/share/classes/jdk/internal/util/xml/impl/Parser.java

Print this page
rev 51919 : 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb

*** 1587,1597 **** case 'X': bkch(); str = name(false); // PI target name may not be empty string [#2.6] // PI target name 'XML' is reserved [#2.6] ! if ((str.length() == 0) || (mXml.name.equals(str.toLowerCase()) == true)) { panic(FAULT); } // This is processing instruction if (mPh == PH_DOC_START) // the begining of the document --- 1587,1597 ---- case 'X': bkch(); str = name(false); // PI target name may not be empty string [#2.6] // PI target name 'XML' is reserved [#2.6] ! if ((str.isEmpty()) || (mXml.name.equals(str.toLowerCase()) == true)) { panic(FAULT); } // This is processing instruction if (mPh == PH_DOC_START) // the begining of the document
< prev index next >