Can we also have the opposite, Some guidelines are against the  (..? return
x:return y)

-----Original Message-----
From: David Smiley [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 15:56
To: [EMAIL PROTECTED]
Subject: [Eap-features] new refactoring : if.. else to (..? return
x:return y)


+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


Visit us at http://www.clearstream.com           
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does 
not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the intended 
recipient, any disclosure, copying, distribution or any action taken or omitted to be 
taken in reliance on it, is prohibited and may be unlawful. Any views expressed in 
this e-mail are those of the individual sender, except where the sender specifically 
states them to be the views of Clearstream International or of any of its affiliates 
or subsidiaries.

END OF DISCLAIMER

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

Reply via email to