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 CyclicReferenceTest {
class CyclicReferenceTest {
void test(Match<String, Integer> match) {
Match<String, Integer> matcher = match.or(s -> Optional.empty(), i -> 2);
Match<String, Integer> matcher1 = match.or(s -> s.startsWith("_") ? Optional.of(1) : Optional.empty(), i -> 2);
@@ -1,4 +1,4 @@
public class Main {
class Main {
interface Function<T, U> {
T fun(U t);
@@ -1,5 +1,5 @@
import java.util.*;
public class BugReportLambdaSquiggles<T> {
class BugReportLambdaSquiggles<T> {
private T t;
public <V> List<V> flatMap(Mapper<T, List<V>> mapper) {
@@ -1,5 +1,5 @@
import java.util.*;
public class Main1 {
class Main1 {
interface I<T> {
List<T> f();
@@ -1,4 +1,4 @@
public class FooBar {
class FooBar {
private static final class Bar2 {
private Bar2() {
}