mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
create static inner class if new expression is inside this/super constructor call (IDEA-45530)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Create Inner Class 'Generic'" "true"
|
||||
class Base {
|
||||
void foo(){}
|
||||
}
|
||||
class Test extends Base {
|
||||
Test() {
|
||||
super.foo(new Generic<String> ());
|
||||
}
|
||||
|
||||
private class Generic<T> {
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create Inner Class 'Generic'" "true"
|
||||
class Test {
|
||||
Test() {
|
||||
this (new Generic<String> ());
|
||||
}
|
||||
|
||||
Test(String s){}
|
||||
|
||||
private static class Generic<T> {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Create Inner Class 'Generic'" "true"
|
||||
class Base {
|
||||
void foo(){}
|
||||
}
|
||||
class Test extends Base {
|
||||
Test() {
|
||||
super.foo(new <caret>Generic<String> ());
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Inner Class 'Generic'" "true"
|
||||
class Test {
|
||||
Test() {
|
||||
this (new <caret>Generic<String> ());
|
||||
}
|
||||
|
||||
Test(String s){}
|
||||
}
|
||||
Reference in New Issue
Block a user