--- old/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicContext.java 2018-12-06 17:26:13.521447886 -0500 +++ new/src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/AtomicContext.java 2018-12-06 17:26:13.349447033 -0500 @@ -243,7 +243,7 @@ protected boolean isEmpty(String name) { - return name == null || name.equals(""); + return name == null || name.isEmpty(); } // ------ implementations of c_ and c_*_nns methods using @@ -510,7 +510,7 @@ */ protected void a_processJunction_nns(String name, Continuation cont) throws NamingException { - if (name.equals("")) { + if (name.isEmpty()) { NameNotFoundException e = new NameNotFoundException(); cont.setErrorNNS(this, name); throw cont.fillInException(e);