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 171331
Collapse All | Expand All

(-)a/refactoring.api/src/org/netbeans/modules/refactoring/spi/RefactoringElementsBag.java (-1 / +1 lines)
Lines 105-111 Link Here
105
            el.setStatus(el.READ_ONLY);
105
            el.setStatus(el.READ_ONLY);
106
            delegate.add(el);
106
            delegate.add(el);
107
        //isQuery should be used
107
        //isQuery should be used
108
        } else if (isGuarded(el) && !(refactoring instanceof WhereUsedQuery)) {
108
        } else if (!(refactoring instanceof WhereUsedQuery) && isGuarded(el)) {
109
            ArrayList<RefactoringElementImplementation> proposedChanges = new ArrayList<RefactoringElementImplementation>();
109
            ArrayList<RefactoringElementImplementation> proposedChanges = new ArrayList<RefactoringElementImplementation>();
110
            ArrayList<Transaction> transactions = new ArrayList<Transaction>();
110
            ArrayList<Transaction> transactions = new ArrayList<Transaction>();
111
            for (GuardedBlockHandler gbHandler: APIAccessor.DEFAULT.getGBHandlers(refactoring)) {
111
            for (GuardedBlockHandler gbHandler: APIAccessor.DEFAULT.getGBHandlers(refactoring)) {
(-)a/refactoring.java/src/org/netbeans/modules/refactoring/java/plugins/JavaWhereUsedQueryPlugin.java (+2 lines)
Lines 212-218 Link Here
212
        fireProgressListenerStep(a.size());
212
        fireProgressListenerStep(a.size());
213
        Problem problem = null;
213
        Problem problem = null;
214
        try {
214
        try {
215
            long currentTimeMillis = System.currentTimeMillis();
215
            processFiles(a, new FindTask(elements));
216
            processFiles(a, new FindTask(elements));
217
            System.out.println("----------FU.processFiles.end: " + (System.currentTimeMillis() - currentTimeMillis));
216
        } catch (IOException e) {
218
        } catch (IOException e) {
217
            problem = createProblemAndLog(null, e);
219
            problem = createProblemAndLog(null, e);
218
        }
220
        }

Return to bug 171331