+1.  I personally do these adjustments by hand at the moment but would love
IDEA to.  This is a type of refactoring that is different than any of the
other refactorings IDEA has... so my only problem with IDEA implementing
something like this would be that it shouldn't do this one alone (since it
would seem out of place), but should have this along with a suite of others
that do "within method equivalent structural conversion" type refactorings.
Another example would be boolean logic inversion... a suggestion I've seen
on this list recently.

~ David Smiley

> From: "Alain Ravet" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Wed, 20 Mar 2002 14:26:57 +0100
> Subject: [Eap-features] new refactoring :  if.. else     to (..? return
x:return y)
>
> Request : new refactoring
>
>
> From :
>
>         if (__phoneFax == null){
>             return EMPTY_STRING;
>         }
>         else {
>             return __phoneFax;
>         }
>
>
> to :
>         return (__phoneFax == null ? EMPTY_STRING: __phoneFax ) ;




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

Reply via email to