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 248169 - Instead of 'Too many return values' display the problematic ones for 'Introduce Method' refactoring
Summary: Instead of 'Too many return values' display the problematic ones for 'Introdu...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2014-10-24 10:17 UTC by tomzi
Modified: 2015-04-07 12:59 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2014-10-24 10:17:05 UTC
.) Select a code passage and 'Introduce Method'
.) If there are too many return values, a popup is displayed saying 'Too many return values'

It would be MUCH more helpful to actually see a list of return variables that are problematic. This would greatly improve the search process. Otherwise I'd have to manually go through the whole section and find them myself, which is really tedious especially if there code section is longer.

Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Linux version 3.13.0-24-generic running on amd64
Java; VM; Vendor = 1.8.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Comment 1 Svata Dedic 2015-04-07 12:59:34 UTC
Interesting. Incidentally there's already a similar occurrences support: place caret on the method's return type, and all exit statements (returns and throws) will be highlighted. Not exactly the same as this issue, but will help a little.