What intentions for automatic conversions exist from 939?

- Editor. Intentions for wrapping/converting types.

That was announced in 939 announcement.

But I am curious if they are covering both AutoBoxing
and BoxPlugin features? I think they are not.




3 comments
Comment actions Permalink

One example, I have:

String s = "1";
int i = s;

When I have BoxPlugin and AutoBoxing installed
they propose:
- convert i to int
- wrap s with Integer.parseInt

Idea alone from build 939 displays only first option.




U¿ytkownik "Michal Szklanowski" <szklanowski@acn.waw.pl> napisa³ w
wiadomo¶ci news:blkg8k$pba$1@is.intellij.net...

- Editor. Intentions for wrapping/converting types.

>

That was announced in 939 announcement.

>

But I am curious if they are covering both AutoBoxing
and BoxPlugin features? I think they are not.

>
>
>
>


0
Comment actions Permalink

No, currently new intention covers only part AutoBoxing plugin, i.e. boxing
of values, but not unboxing them.
Note, however that it is capable of boxing not only primitive types, but any
type for which a static convertor exists.

Friendly,
Eugene

"Michal Szklanowski" <szklanowski@acn.waw.pl> wrote in message
news:blkg8k$pba$1@is.intellij.net...

- Editor. Intentions for wrapping/converting types.

>

That was announced in 939 announcement.

>

But I am curious if they are covering both AutoBoxing
and BoxPlugin features? I think they are not.

>
>
>
>


0
Comment actions Permalink

Note, however that it is capable of boxing not only primitive types, but

any

type for which a static convertor exists.

>
Eugene, could you please give me an example, to have bright picture of what
you have said?



0

Please sign in to leave a comment.