IDEA-120784 "Class is public should be declared in a file named <Classname>.java" for inner interface

This commit is contained in:
Alexey Kudravtsev
2014-02-18 13:55:52 +04:00
parent 65642d998f
commit c7b78f76a2
309 changed files with 381 additions and 364 deletions
@@ -1,4 +1,4 @@
public class SampleExtendsWildcard {
class SampleExtendsWildcard {
public void highlightsTheBug(Stream<String> stream) {
stream.flatMap((Block<?> sink, String element) -> {});
}
@@ -1,6 +1,6 @@
import java.util.List;
public class Sample {
class Sample {
interface Fun<A extends List <String>, B> {
B f(A a);
}
@@ -1,4 +1,4 @@
public class Sample {
class Sample {
static <T> T foo(T t) { return null; }
static {
@@ -2,7 +2,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class Sample {
class Sample {
static List<String> getList(Function<Object, String> function, ArrayList<? super String> objects) {
return transform(objects, new ArrayList<String>(), function);
@@ -1,4 +1,4 @@
public class Sample {
class Sample {
interface G<A> {}
interface G1 extends G {}
@@ -1,4 +1,4 @@
public class Sample {
class Sample {
interface G<A> {}
interface G1 extends G {}