It would be useful to add a Change Method Return Type refactoring (or extend
Change Method Parameters refactoring to allow changing return type).
Vince Kraemer wrote (on nbusers):
I think it would be nice to have a 'Change return type' refactor on methods.
It isn't very useful for standard java projects.
It can be pretty important for J2ee projects, though. An example would be
changing the return type of an "business method" on a enterprise javabean.
Creating the business method only makes one visible change in the project.
The user needs to do a couple changes to complete the return type change.
The second change (in the interface file) won't be obviously required until the
user gets a compilation error.
*** Bug 66414 has been marked as a duplicate of this bug. ***
Author: Ralph Benjamin Ruijs <email@example.com>
Date: 2011-07-22 08:58
Issue #56114 - Change Method Return Type refactoring
Integrated into 'main-golden'
User: Ralph Benjamin Ruijs <firstname.lastname@example.org>
Log: Issue #56114 - Change Method Return Type refactoring