Features of Java generics
Java generics is a great feature introduced in Java 5, but it’s not that type safe that you would assume. The following example was found in our test code. dto.setFailingTask(new ArrayList(Arrays.asList(“Task1”, “Task2”)); where the setter looks like the following: public void setFailingTask(List<Task> aTasks) { tasks = aTasks; } So what’s going on here? The first… Read More »