mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
+12
@@ -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<>();
|
||||
}
|
||||
}
|
||||
+12
@@ -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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user