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

Summary: Do not provide 'assign return value to variable ' in if body
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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 :)