[biojava-dev] a bit offtopic: javac 1.5 & generics

Matthew Pocock matthew_pocock at yahoo.co.uk
Fri Feb 6 06:18:41 EST 2004


Hi,

I've not used the generics in anger yet, but can you not use something like:

Set<Foo> emptyFoos = <Foo>Collections.EMPTY_SET;

I'm assuming that Collections is a templated class, and that I've chosen 
the right syntax, but this is Sun, after all.

M




More information about the biojava-dev mailing list