< prev index next >

src/jdk.jcmd/share/classes/sun/tools/jmap/JMap.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

*** 147,157 **** private static void histo(String pid, String options) throws AttachNotSupportedException, IOException, UnsupportedEncodingException { String liveopt = "-all"; ! if (options.equals("") || options.equals("all")) { // pass } else if (options.equals("live")) { liveopt = "-live"; } --- 147,157 ---- private static void histo(String pid, String options) throws AttachNotSupportedException, IOException, UnsupportedEncodingException { String liveopt = "-all"; ! if (options.isEmpty() || options.equals("all")) { // pass } else if (options.equals("live")) { liveopt = "-live"; }
< prev index next >