testdata fixed according to new code style

This commit is contained in:
Anna Kozlova
2012-08-27 20:30:39 +04:00
parent c08e6b7183
commit 2956c09aff
13 changed files with 13 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
// "Replace with lambda" "true"
class Test {
{
Comparable<String> c = o->{
Comparable<String> c = o -> {
return 0;
};
}

View File

@@ -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() {

View File

@@ -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.
});
}

View File

@@ -1,7 +1,7 @@
// "Replace with lambda" "true"
class Test {
{
Runnable r = ()->{
Runnable r = () -> {
System.out.println("");
};
}

View File

@@ -1,7 +1,7 @@
// "Replace with lambda" "true"
class Test {
{
Runnable[] r = new Runnable[] {()->{
Runnable[] r = new Runnable[] {() -> {
System.out.println("");
}};
}

View File

@@ -1,6 +1,6 @@
// "Remove redundant types" "true"
class Test {
{
Comparable<String> r = o-> 1;
Comparable<String> r = o -> 1;
}
}

View File

@@ -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);
}
}

View File

@@ -10,6 +10,6 @@ class ReturnTypeCompatibility {
}
public static void main(String[] args) {
call("", i-> "");
call("", i -> "");
}
}

View File

@@ -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) { }

View File

@@ -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; }

View File

@@ -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;
};
}

View File

@@ -1,5 +1,5 @@
class X {
{
Comparable<String> c = (String o)-> 1;
Comparable<String> c = (String o) -> 1;
}
}

View File

@@ -4,6 +4,6 @@ class X {
}
{
I<String> c = (String o1, String o2)-> {};
I<String> c = (String o1, String o2) -> {};
}
}