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 205195 - Hint: Remove unused assignment
Summary: Hint: Remove unused assignment
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 13:18 UTC by stefan79
Modified: 2013-09-02 14:22 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Hardcopy of the example (17.08 KB, image/png)
2011-11-16 13:19 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-11-16 13:18:36 UTC
[ BUILD # : 201111150600 ]
[ JDK VERSION : 1.6.25 ]

Please provide a Correction for "Unused Assignment".

Example-Code
...
public class Test1 {
    public Test1() {
        int iix = 0;      
        iix=2;
        
        if  (iix == 0) {
            int iiy=2;
        }
    }
}
..

Result aufter Correction:
..
public class Test1 {
    public Test1() {
        int iix;
        iix=2;
        
        if  (iix == 0) {
            int iiy=2;
        }
    }
}
...
Comment 1 stefan79 2011-11-16 13:19:41 UTC
Created attachment 113257 [details]
Hardcopy of the example