mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
IDEA-120784 "Class is public should be declared in a file named <Classname>.java" for inner interface
This commit is contained in:
@@ -154,7 +154,7 @@ class MyTest5 {
|
||||
}
|
||||
}
|
||||
|
||||
public class MyTest6 {
|
||||
class MyTest6 {
|
||||
interface I {
|
||||
void _(Integer i);
|
||||
}
|
||||
@@ -169,7 +169,7 @@ public class MyTest6 {
|
||||
}
|
||||
}
|
||||
|
||||
public class MyTest7 {
|
||||
class MyTest7 {
|
||||
interface I {
|
||||
void _(Number i);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class Main {
|
||||
class Main {
|
||||
public static <T> void make(final Consumer<? super T> consumer) {
|
||||
Sink<T> accept = (Sink<T>) consumer::accept;
|
||||
Consumer<T> accept1 = (Consumer<T>)consumer::accept;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class IDEA99970 {
|
||||
class IDEA99970 {
|
||||
public static <T, C> Collector<T, C> toCollection(Supplier<C> collectionFactory) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class InspectorTest {
|
||||
class InspectorTest {
|
||||
interface Stream<T> {
|
||||
<A> A[] toArray(IntFunction<A[]> generator);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class Test {
|
||||
class Test {
|
||||
|
||||
interface I {
|
||||
<T> String m();
|
||||
|
||||
Reference in New Issue
Block a user