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