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 135050 - Do not provide 'assign return value to variable ' in if body
Summary: Do not provide 'assign return value to variable ' in if body
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2008-05-14 14:54 UTC by Jiri Prox
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-05-14 14:54:31 UTC
Product Version: NetBeans IDE Dev (Build 20080513223920)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

Do not provide 'assign return value to variable' hint in if body when it consist only from one statement,
e.g. for method put in following code:

if(map.get(file)==null) map.put(file, new LinkedList<String>());
Comment 1 Jan Becicka 2008-05-15 13:26:12 UTC
Max volunteered :)