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 - New Fixable Hint for Method with Absent Required Return Statement
Summary: New Fixable Hint for Method with Absent Required Return Statement
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: PLAN
Depends on:
Blocks:
 
Reported: 2011-10-26 11:44 UTC by Geertjan Wielenga
Modified: 2012-02-17 07:15 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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