< prev index next >
src/jdk.naming.dns/share/classes/com/sun/jndi/dns/DnsUrl.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
*** 87,97 ****
}
domain = path.startsWith("/")
? path.substring(1)
: path;
! domain = domain.equals("")
? "."
: UrlUtil.decode(domain);
// Debug
// System.out.println("host=" + host + " port=" + port +
--- 87,97 ----
}
domain = path.startsWith("/")
? path.substring(1)
: path;
! domain = domain.isEmpty()
? "."
: UrlUtil.decode(domain);
// Debug
// System.out.println("host=" + host + " port=" + port +
< prev index next >