- When there's a method like

void method()
{
   // impl
}

and someone decided to make it return a value:

void method()
{
   // impl
   return value; // just typed
}

Idea higlights this as an error. It would be nice if it would also suggest
changing the result type appropriately by replacing the 'void' with
TypeOfValue, drawing red box around, and supplying a drop-down box with
supertypes of TypeOfValue.
I know that there's is Change method signature refactoring but after it one has
to type 'return value' anyway.
It would be worth having both ways, as sometimes refactoring starts with
changing method signature, and sometimes with typing "return value".

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to