This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
private java.util.Collection computeResult(int indexToCache, boolean callBeforeLookup) {
Lookup.Result[] arr = myBeforeLookup(callBeforeLookup, false);
// use caches, if they exist
synchronized (proxy()) {
// synchronized (proxy()) {
Collection[] cc = getCache();
// Collection[] cc = getCache();
if (cc != null && cc != R.NO_CACHE) {
// if (cc != null && cc != R.NO_CACHE) {
Collection r = cc[indexToCache];
// Collection r = cc[indexToCache];
if (r != null) {
// if (r != null) {
return r;
// return r;
}
// }
if (indexToCache == 1) {
return new LazySet(this, indexToCache, callBeforeLookup, arr);