mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
testdata fixed according to new code style
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o->{
|
||||
Comparable<String> c = o -> {
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o->{
|
||||
Comparable<String> c = o -> {
|
||||
Runnable r = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
@@ -9,7 +9,7 @@ class Test2 {
|
||||
static <T> I<T> bar(I<T> i){return i;}
|
||||
|
||||
{
|
||||
bar((List<String> list)->{
|
||||
bar((List<String> list) -> {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = ()->{
|
||||
Runnable r = () -> {
|
||||
System.out.println("");
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable[] r = new Runnable[] {()->{
|
||||
Runnable[] r = new Runnable[] {() -> {
|
||||
System.out.println("");
|
||||
}};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// "Remove redundant types" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> r = o-> 1;
|
||||
Comparable<String> r = o -> 1;
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,6 @@ class Test2 {
|
||||
static <T> I<T> bar(I<T> i){return i;}
|
||||
|
||||
{
|
||||
Test2.<String>bar(y-> y.t);
|
||||
Test2.<String>bar(y -> y.t);
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,6 @@ class ReturnTypeCompatibility {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
call("", i-> "");
|
||||
call("", i -> "");
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ interface SAM<X> {
|
||||
|
||||
class Foo {
|
||||
void test() {
|
||||
SAM<Integer> c = (i, j)->i + j;
|
||||
SAM<Integer> c = (i, j) -> i + j;
|
||||
m(c);
|
||||
}
|
||||
void m(SAM<Integer> s) { }
|
||||
|
||||
@@ -4,7 +4,7 @@ interface SAM<X> {
|
||||
|
||||
class Foo {
|
||||
void test() {
|
||||
SAM<String> c = (i, j)->"" + i + j;
|
||||
SAM<String> c = (i, j) -> "" + i + j;
|
||||
SAM<Integer> s3 = m(c);
|
||||
}
|
||||
<X> SAM<X> m(SAM<X> s) { return null; }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Test1<U> {
|
||||
|
||||
public static void main(String[] args) {
|
||||
Comparable<? extends Integer> c = (Integer o)->{
|
||||
Comparable<? extends Integer> c = (Integer o) ->{
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class X {
|
||||
{
|
||||
Comparable<String> c = (String o)-> 1;
|
||||
Comparable<String> c = (String o) -> 1;
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,6 @@ class X {
|
||||
}
|
||||
|
||||
{
|
||||
I<String> c = (String o1, String o2)-> {};
|
||||
I<String> c = (String o1, String o2) -> {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user