< prev index next >
src/java.sql.rowset/share/classes/com/sun/rowset/internal/WebRowSetXmlWriter.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
@@ -535,11 +535,11 @@
}
private void writeStringData(String s) throws java.io.IOException {
if (s == null) {
writeNull();
- } else if (s.equals("")) {
+ } else if (s.isEmpty()) {
writeEmptyString();
} else {
s = processSpecialCharacters(s);
< prev index next >