< prev index next >
src/java.naming/share/classes/com/sun/jndi/ldap/LdapURL.java
Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad
@@ -195,11 +195,11 @@
private void parsePathAndQuery() throws MalformedURLException,
UnsupportedEncodingException {
// path begins with a '/' or is empty
- if (path.equals("")) {
+ if (path.isEmpty()) {
return;
}
DN = path.startsWith("/") ? path.substring(1) : path;
if (DN.length() > 0) {
< prev index next >