Prettier-Java 2.7.3
Playground link
Input:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
switch (m) {
case A a ->
// comment
result;
}
}
}
Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
switch (m) {
case A a -> // comment
result;
}
}
}
Expected behavior:
- the comment was moved which is unexpected;
- the
result; line should be indented.