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 238067

Summary: Value unused triggered if only used as lval index
Product: java Reporter: Chiana
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: hildeberto
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 249320    
Attachments: Screenshot

Description Chiana 2013-11-06 21:04:15 UTC
Created attachment 141919 [details]
Screenshot

The hint "Assigned value never used" is triggered if the assigned value is used only as an index in an lval, see screenshot.
Not sure if this is an regression but I've seen it in the latest builds.
Comment 1 Jiri Prox 2014-02-05 08:01:57 UTC
*** Bug 241195 has been marked as a duplicate of this bug. ***
Comment 2 Svata Dedic 2015-09-10 14:33:00 UTC
Linking to an umbrella issue
Comment 3 Svata Dedic 2015-11-13 10:50:43 UTC
Fixed in new impl, wait for the umbrella issue to close.