mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
IDEA-120784 "Class is public should be declared in a file named <Classname>.java" for inner interface
This commit is contained in:
@@ -8,7 +8,7 @@ interface Function<T, R> {
|
||||
R apply(T t);
|
||||
}
|
||||
|
||||
public final class Collectors {
|
||||
final class Collectors {
|
||||
public static <T>
|
||||
Collector<List<T>> toList() {
|
||||
return null;
|
||||
|
||||
@@ -17,7 +17,7 @@ interface S<T> {
|
||||
|
||||
interface F<TF> {}
|
||||
|
||||
public final class Collectors {
|
||||
final class Collectors {
|
||||
public static <T>
|
||||
Collector<List<T>> toList() {
|
||||
return null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class Test<A,B> {
|
||||
class Test<A,B> {
|
||||
public static <P,Q> Test<P,Q> left(P p) { return null; }
|
||||
public static <P,Q> Test<P,Q> right(Q q) { return null; }
|
||||
public <C> C either(Function<A, C> leftFn, Function<B, C> rightFn){ return null; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public abstract class Tmp<T> {
|
||||
abstract class Tmp<T> {
|
||||
private String concat(Tmp<String> tmp) {
|
||||
return tmp.collect(StringBuilder::new, StringBuilder::append, StringBuilder::append).toString();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class Test {
|
||||
class Test {
|
||||
|
||||
{
|
||||
addListener(this::editPropertyChanged);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
public class Tmp
|
||||
class Tmp
|
||||
{
|
||||
void foo(){}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Box<TBox>
|
||||
class Box<TBox>
|
||||
{
|
||||
|
||||
public TBox getValue()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import java.util.List;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
public class Tmp {
|
||||
class Tmp {
|
||||
static void doo(Runnable action){}
|
||||
static void doo(Callable<?> action){}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import java.util.Comparator;
|
||||
|
||||
public class Test<T extends Test<T>> {
|
||||
class Test<T extends Test<T>> {
|
||||
Comparator<Test<?>> bySize = Comparator.comparingInt(Test::size);
|
||||
|
||||
public int size() {
|
||||
|
||||
Reference in New Issue
Block a user