Community
Participate
Working Groups
I've got next static function: public static Collection<IAttribute> createCollection(Attributes atts) {} I invoke it like this: Collection<IAttribute> atts = Attribute.createCollection(...); Warning message: Unsafe type operation: should not assign expression of raw type Collection to type Collection<IAttribute>. References to generic type Collection<E> should be parameterized. Sorry if it's my mistake. I couldn't find any generics references guides, etc.
Cannot reproduce on following testcase with latest HEAD contents: import java.util.Collection; public class X { public static void main(String[] args) { Collection<IAttribute> atts = Attribute.createCollection(null); } } interface IAttribute {} class Attribute implements IAttribute { public static Collection<IAttribute> createCollection(Attribute atts) { return null; } }
Cannot reproduce with Cheetah06 either. Please reopen with steps to reproduce.
Closing as never reproduced in a long time
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.