< prev index next >
src/java.base/share/classes/sun/net/www/protocol/mailto/Handler.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
@@ -125,11 +125,11 @@
}
/*
* Let's just make sure we DO have an Email address in the URL.
*/
boolean nogood = false;
- if (file == null || file.equals(""))
+ if (file == null || file.isEmpty())
nogood = true;
else {
boolean allwhites = true;
for (int i = 0; i < file.length(); i++)
if (!Character.isWhitespace(file.charAt(i)))
< prev index next >