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 227564 - Fixable hint for "assignment to itself"
Summary: Fixable hint for "assignment to itself"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 22:21 UTC by markiewb
Modified: 2013-09-02 14:22 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Shows the warning, but there is no fixable hint (6.80 KB, image/png)
2013-03-16 22:21 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-03-16 22:21:55 UTC
Created attachment 132691 [details]
Shows the warning, but there is no fixable hint

<code>
    void method(int a) {
	int i=1;
	i=i; // fixable hint should be here
	
	a=a; // fixable hint should be here too
    }
</code>

ACTUAL: error "assignment to itself", but no fixable hint

EXPECTED: error "assignment to itself" with fixable hint "remove assignment" (this will remove the whole assignment statement)