mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
create inner: ensure no modifiers inside local/anonymous classes (IDEA-167727)
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// "Create inner class 'MyCollection'" "true"
|
||||
import java.util.*;
|
||||
|
||||
public interface I {
|
||||
public static void main() {
|
||||
class C {
|
||||
{
|
||||
Collection c = new MyCollection(1, "test");
|
||||
}
|
||||
|
||||
class MyCollection implements Collection {
|
||||
public MyCollection(int i, String test) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Create inner class 'MyCollection'" "true"
|
||||
import java.util.*;
|
||||
|
||||
public interface I {
|
||||
public static void main() {
|
||||
class C {
|
||||
{
|
||||
Collection c = new <caret>MyCollection(1, "test");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user