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

(-)a/refactoring.api/src/org/netbeans/modules/refactoring/spi/RefactoringElementsBag.java (-1 / +2 lines)
Lines 220-226 Link Here
220
                    Position elementEnd = el.getPosition().getEnd().getPosition();
220
                    Position elementEnd = el.getPosition().getEnd().getPosition();
221
                    for(GuardedSection section:manager.getGuardedSections()) {
221
                    for(GuardedSection section:manager.getGuardedSections()) {
222
                        if (section.contains(elementStart, true) ||
222
                        if (section.contains(elementStart, true) ||
223
                                section.contains(elementEnd, true)) {
223
                            (section.contains(elementEnd, true) && 
224
                                section.getStartPosition().getOffset() != elementEnd.getOffset())) {
224
                            return true;
225
                            return true;
225
                        }
226
                        }
226
                    }
227
                    }

Return to bug 250995