< 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()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

*** 125,135 **** } /* * Let's just make sure we DO have an Email address in the URL. */ boolean nogood = false; ! if (file == null || file.equals("")) nogood = true; else { boolean allwhites = true; for (int i = 0; i < file.length(); i++) if (!Character.isWhitespace(file.charAt(i))) --- 125,135 ---- } /* * Let's just make sure we DO have an Email address in the URL. */ boolean nogood = false; ! 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 >