mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
testdata fixed according to new code style
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> c = o->{
|
||||
Comparable<String> c = o -> {
|
||||
return 0;
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -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() {
|
||||
|
||||
+1
-1
@@ -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
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable r = ()->{
|
||||
Runnable r = () -> {
|
||||
System.out.println("");
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class Test {
|
||||
{
|
||||
Runnable[] r = new Runnable[] {()->{
|
||||
Runnable[] r = new Runnable[] {() -> {
|
||||
System.out.println("");
|
||||
}};
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Remove redundant types" "true"
|
||||
class Test {
|
||||
{
|
||||
Comparable<String> r = o-> 1;
|
||||
Comparable<String> r = o -> 1;
|
||||
}
|
||||
}
|
||||
+1
-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);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -10,6 +10,6 @@ class ReturnTypeCompatibility {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
call("", i-> "");
|
||||
call("", i -> "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user