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 204266

Summary: New Fixable Hint for Method with Absent Required Return Statement
Product: editor Reporter: Geertjan Wielenga <geertjan>
Component: Hints & AnnotationsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal Keywords: PLAN
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Geertjan Wielenga 2011-10-26 11:44:43 UTC
In this situation:

public String getScrambledWord() {

}

There should be two fixable hints on the method:

- Add Return statement
- Make 'getScrambledWord' return 'void'

Right now, neither of these are present in NetBeans IDE.
Comment 1 Jan Lahoda 2012-02-17 07:15:18 UTC
http://hg.netbeans.org/jet-main/rev/098dd7252cc7