Community
Participate
Working Groups
When I have the following logic: ------------------------------------------------ import java.util.ArrayList; import java.util.List; public class Diamond { List<Integer> list = new ArrayList<>(); } ------------------------------------------------ I can put my cursor in the diamond <> and there's a quick fix being offered, called "Insert inferred type arguments", which is great, and leads to this code: ------------------------------------------------ import java.util.ArrayList; import java.util.List; public class Diamond { List<Integer> list = new ArrayList<Integer>(); } ------------------------------------------------ Unfortunately, the inverse is not available. In the above logic, I'd like to be offered an option to remove this type argument again. This would be a bit easier to do with more complex generic types, such as e.g. new HashMap<String, Map<Object, List<?>>>();, when selecting the type is a bit tedious.