Friday, August 12, 2005

Java: Thinking in Java

Here's a Java snippet from Bruce Eckel's blog:
static List<Test<List<Integer>>> tests = 
new ArrayList<Test<List<Integer>>>();
static List<Test<LinkedList<Integer>>> qTests =
new ArrayList<Test<LinkedList<Integer>>>();

Crazy.

1 comment:

Anthony said...

Crazy is not nearly a violent enough word to describe how I feel when I see code like this. It's just more proof that Java Generics is one of the worst additions to the language ever. Take a look through the 1.5 JavaDocs if you want to see another reason why generics are such a piece of crap.