Bug 204266 - New Fixable Hint for Method with Absent Required Return Statement
New Fixable Hint for Method with Absent Required Return Statement
Status: RESOLVED FIXED
Product: editor
Classification: Unclassified
Component: Hints & Annotations
7.1
PC Linux
: P3 (vote)
: 7.2
Assigned To: Jan Lahoda
issues@editor
: PLAN
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo