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.

Bug 205347 - Unused Variable Hint broken with continue
Summary: Unused Variable Hint broken with continue
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: Other Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 11:27 UTC by Jaroslav Tulach
Modified: 2012-05-02 05:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2011-11-21 11:27:03 UTC
Assigning false to again is incorrectly marked as unused assignment:

    public void reallyUsed() {
        boolean again = true;
        for (;;) {
            if (again) {
                again = false;
                continue;
            }
            break;
        }
    }
Comment 1 Quality Engineering 2011-12-01 12:09:13 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ebadd6d227e2
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #205347: fixing flow for condition-less for loops.