Re: [VOTE] generics: have methods returning objects infer the type from the receiving variable type (was: clarifying a generics issue)

2009-08-11 Thread Adam Lally
On Tue, Aug 11, 2009 at 3:16 PM, Marshall Schor wrote: > > So - can we close up this discussion with a vote on the following: > > On the normal scale of -1, 0, +1, to the proposition - > > have the generic form of many methods that are in the public API for > UIMA that return UIMA objects, return a

[VOTE] generics: have methods returning objects infer the type from the receiving variable type (was: clarifying a generics issue)

2009-08-11 Thread Marshall Schor
I can see Adam's point. If there was some way to do an explicit cast that worked for collections, then I would be happy with that. In other words, if we had something of type List and I knew the list really contained only Integers, if there was a way to cast this: List i_know_what_i_m_doing =