When calling "Surround with" in a class 'MyClass',
IDEA offers those 3 options in a popup menu :

    1. (expr)
    2. ((type)expr)
    4. !(expr instanceof Type)


If  you accept option 2,
on the following code,

     public int compareTo( Object o ){
         o
         return 0;
     }


IDEA generates (notice the default type : 'a')

     public int compareTo( Object o )
     {
         ( (a ) o )
         return 0;
     }

Request :
*********
The name of the enclosing class as the default type value would make 
more sense:

     public int compareTo( Object o )
     {
         ( (MyClass) o )
         return 0;
     }

as the next step is
         ..
         MyClass object = ( (MyClass) o );
         ..

Alain Ravet


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

Reply via email to