btw. you could do away with the itco altogether and use subsystems.addAll(sub) or whatever the collection was that itSub was iterating over.
Cheers, Dan > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 04 January 2002 14:45 > To: [EMAIL PROTECTED] > Subject: [Eap-list] (Object)-cast in inline variable > > > >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 > *************************************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] immediately. This footnote also confirms that this email message has been swept for the presence of computer viruses. *************************************************************************************** _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
