jdk/src/share/classes/com/sun/jndi/ldap/AbstractLdapNamingEnumeration.java
changeset 25808 e113d0a0fde0
parent 10324 e28265130e4f
equal deleted inserted replaced
25807:6c325960c9ee 25808:e113d0a0fde0
   135 
   135 
   136         entries = res.entries;
   136         entries = res.entries;
   137         limit = (entries == null) ? 0 : entries.size(); // handle empty set
   137         limit = (entries == null) ? 0 : entries.size(); // handle empty set
   138         posn = 0; // reset
   138         posn = 0; // reset
   139 
   139 
   140         // mimimize the number of calls to processReturnCode()
   140         // minimize the number of calls to processReturnCode()
   141         // (expensive when batchSize is small and there are many results)
   141         // (expensive when batchSize is small and there are many results)
   142         if ((res.status != LdapClient.LDAP_SUCCESS) ||
   142         if ((res.status != LdapClient.LDAP_SUCCESS) ||
   143             ((res.status == LdapClient.LDAP_SUCCESS) &&
   143             ((res.status == LdapClient.LDAP_SUCCESS) &&
   144                 (res.referrals != null))) {
   144                 (res.referrals != null))) {
   145 
   145