>This cast is autogenerated by the itco template.
>
>Tom

That's right.
So perhaps the template could remove the unnecessary cast?
Ok, it's just a "beauty"-problem ;-)


>At 13:58 04.01.02 +0000, you wrote:
>Erm, looks like garbage in, garbage out to me.  Surely the cast in the line:
>
>     Object o = (Object) itSub.next();
>
>is superfluous?
>
>Just curious,
>Dan

> >
> > Object o = (Object) itSub.next();
> > subsystems.add(o);
> >
> > if you inline o, you get
> >
> > subsystems.add((Object) itSub.next());
> >
> > I think the cast to Object does not have any meaning
> > as iterator.next returns Object anyway,
> > so IDEA could leave it out.

________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



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

Reply via email to