can be diamond: ensure inner class is referenced as simple name, otherwise qualified text with generics outer class would lead to kinda raw type (IDEA-159179)

This commit is contained in:
Anna Kozlova
2016-08-12 09:21:55 +03:00
parent bca244394b
commit a5af84762d
3 changed files with 31 additions and 2 deletions
@@ -0,0 +1,12 @@
// "Replace with <>" "true"
import java.util.ArrayList;
import java.util.List;
class Util<T> {
private class WithPosition {}
public void addNewlyAddedChildrenOf() {
List<WithPosition> addings = new ArrayList<>();
}
}
@@ -0,0 +1,12 @@
// "Replace with <>" "true"
import java.util.ArrayList;
import java.util.List;
class Util<T> {
private class WithPosition {}
public void addNewlyAddedChildrenOf() {
List<WithPosition> addings = new ArrayList<With<caret>Position>();
}
}