Re: Java Generics - "super" keyword usage

Olivier Lefevre <[email protected]>
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
>    public static HashSet<T> newHashSet() { return new HashSet<T>(); }

That should be 'public static <T> HashSet<T> newHashSet()' of course
(forgot the <T>).

-- O.L.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.