Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Better Java – Resources for Writing Modern Java. Parent comment
The collection creation methods existed because Java could perform type inference on methods but could not on constructors:
// Java 1.5 Map<String,Integer> map = new HashMap<String,Integer>(); // Guava Map<String,Integer> map = Maps.newHashMap(); // Java 1.8 diamond notation Map<String,Integer> map = new HashMap<>();
There are no comments on this comment yet.
The collection creation methods existed because Java could perform type inference on methods but could not on constructors: