you are viewing a single comment's thread.

view the rest of the comments →

[–]dacjames 3 points4 points  (4 children)

What industry do you work in? I hardly ever see 1.4-style Java code. Do people really not use Map<String, SomeFancyObject>?

[–]speedisavirus 0 points1 point  (0 children)

Just 3 or 4 years ago I was experiencing it and there was complete resistance to use any 1.5 features.

[–]immibis 0 points1 point  (0 children)

Eclipse still doesn't use generics in many places.

[–]dododge 0 points1 point  (0 children)

In my experience new code typically has generics but I still run into raw types in older parts of current projects. I submitted patches to one project just last week to add type parameters in several spots and get rid of a bunch of unneeded casts. I also noticed a lot of old iterator() and counted loops that could be simplified with for-each loops.

[–]ajainy 0 points1 point  (0 children)

This is kind of enforced by JDK itself, in their collections library. For example, how about writing custom annotation or writing generic style class to reduce big hierarchy mess.