--- old/src/java.naming/share/classes/com/sun/jndi/ldap/LdapURL.java 2018-12-06 17:53:21.893522547 -0500 +++ new/src/java.naming/share/classes/com/sun/jndi/ldap/LdapURL.java 2018-12-06 17:53:21.725521714 -0500 @@ -197,7 +197,7 @@ // path begins with a '/' or is empty - if (path.equals("")) { + if (path.isEmpty()) { return; }