>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 ;-) >
"the template" can't remove the cast, because you have to specify to which class you want to cast, and there's no way to choose "no cast". So, back to: "inline variable could leave out an obviously unnecessary cast". And sorry for sending to eap-list instead of features - I should take a break... >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-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
