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 256484

Summary: Method @NotNull outcome or parameter suggestion
Product: java Reporter: Svata Dedic <sdedic>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 256485    

Description Svata Dedic 2015-11-10 07:28:42 UTC
1/ The IDE should suggest @NonNull annotation for methods, which, on all its normal exit paths, produce non-null result. Even lazy getters have often such a property 

2/ If a method parameter si blindly dereferenced, the IDE could offer @NonNull annotation to the parameter or assert param != null guard, to help the programmer if the non-nullness is a designed property.