Community
Participate
Working Groups
Example: ---- package test; import java.util.ArrayList; import java.util.List; public class Testing { public static void main(String[] args) { List l = new ArrayList(); l.add("Hello"); } } ---- Relevant code after quickfix: ---- List<String> l = new ArrayList<String>(); l.add("Hello"); ---- Expected: ---- List<String> l = new ArrayList<>(); l.add("Hello"); ---- This is especially useful if we set the compiler setting to error for redundant type information.
*** This bug has been marked as a duplicate of bug 506243 ***