Congrats on the new release @jtkiesel! However, there's a nasty regression in certain cases.
Prettier-Java 2.7.6
Playground link 1
Playground link 2
Input:
public abstract class Foo implements MyInterface {
@Override public String foo() {
return true ? "" :
foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}
Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true
? ""
: foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}
Expected behavior:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true
? ""
: foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}
The two playground links show regressions for these two previous cases (but this time in a ternary):
#764
#760
I'm not sure there aren't more cases that regressed.
Congrats on the new release @jtkiesel! However, there's a nasty regression in certain cases.
Prettier-Java 2.7.6
Playground link 1
Playground link 2
Input:
Output:
Expected behavior:
The two playground links show regressions for these two previous cases (but this time in a ternary):
#764
#760
I'm not sure there aren't more cases that regressed.