new
expressions with type arguments that can be replaced a with diamond type <>
.
Example:
List<String> list = new ArrayList<String>(); // reports array list type argument
After the quick-fix is applied:
List<String> list = new ArrayList<>();
The <>
syntax isn't supported in Java 1.6 and earlier JVMs.