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.

View | Details | Raw Unified | Return to bug 210279
Collapse All | Expand All

(-)a/openide.util.lookup/src/org/openide/util/lookup/ProxyLookup.java (-9 / +9 lines)
Lines 534-548 Link Here
534
        private java.util.Collection computeResult(int indexToCache, boolean callBeforeLookup) {
534
        private java.util.Collection computeResult(int indexToCache, boolean callBeforeLookup) {
535
            Lookup.Result[] arr = myBeforeLookup(callBeforeLookup, false);
535
            Lookup.Result[] arr = myBeforeLookup(callBeforeLookup, false);
536
            // use caches, if they exist
536
            // use caches, if they exist
537
            synchronized (proxy()) {
537
//            synchronized (proxy()) {
538
                Collection[] cc = getCache();
538
//                Collection[] cc = getCache();
539
                if (cc != null && cc != R.NO_CACHE) {
539
//                if (cc != null && cc != R.NO_CACHE) {
540
                    Collection r = cc[indexToCache];
540
//                    Collection r = cc[indexToCache];
541
                    if (r != null) {
541
//                    if (r != null) {
542
                        return r;
542
//                        return r;
543
                    }
543
//                    }
544
                }
544
//                }
545
            }
545
//            }
546
            if (indexToCache == 1) {
546
            if (indexToCache == 1) {
547
                return new LazySet(this, indexToCache, callBeforeLookup, arr);
547
                return new LazySet(this, indexToCache, callBeforeLookup, arr);
548
            }
548
            }

Return to bug 210279