< prev index next >

src/java.naming/share/classes/com/sun/jndi/ldap/NamingEventNotifier.java

Print this page
rev 52881 : 8214971: Replace use of string.equals("") with isEmpty()
Reviewed-by: jlaskey, prappo, lancea, dfuchs, redestad

*** 113,123 **** */ public void run() { try { Continuation cont = new Continuation(); cont.setError(this, info.name); ! Name nm = (info.name == null || info.name.equals("")) ? new CompositeName() : new CompositeName().add(info.name); results = context.searchAux(nm, info.filter, info.controls, true, false, cont); --- 113,123 ---- */ public void run() { try { Continuation cont = new Continuation(); cont.setError(this, info.name); ! Name nm = (info.name == null || info.name.isEmpty()) ? new CompositeName() : new CompositeName().add(info.name); results = context.searchAux(nm, info.filter, info.controls, true, false, cont);
< prev index next >