Java 7 Diamond Operation in method call
问题 This is kind of a follow up question on the discussion: Why doesn't the diamond operator work within a addAll() call in Java 7? From the Java Tutorial, http://docs.oracle.com/javase/tutorial/java/generics/gentypeinference.html Note that the diamond often works in method calls; however, for greater clarity, it is suggested that you use the diamond primarily to initialize a variable where it is declared So, I am a bit confused about the first line. When does diamond work in method calls? A bit