< 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,11 +113,11 @@
*/
public void run() {
try {
Continuation cont = new Continuation();
cont.setError(this, info.name);
- Name nm = (info.name == null || info.name.equals("")) ?
+ 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 >