>The name of the enclosing class as the default type value would make more
>sense:
Why it would make more sense? I can't remember a situation, where I cast to
the same class I'm in.
Tom
At 21:21 05.03.02 +0100, you wrote:
>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
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features