A translation from polish of my presentation about Java 6. It can be used for encouraging a upgrade of a legacy system or to train your team (as I did :]).
30. Problems
1. Inheritance and generics
2. Class to be used with the enhanced for loop
3. Watch out! Autoboxing in a loop
4. When use the static import?
5. Rules for Varargs
30
37. When use the static import?
…firstly, try not to overuse it
it works well if it makes your code more readable and
DRY, i.e.:
JUnit 4 (org.junit.Assert.*);
Mockito (org.mockito.Mockito.*);
37