-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
Prettier-Java 2.7.3
--print-width 100Input:
public abstract class Foo implements MyInterface {
@Override public String foo() {
var a =
a &&
Foo.get(longlinelonglinelonglinelonglinelongline) instanceof
NumberNumberNumberNumber n &&
n.foo();
}
}Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
var a =
a &&
Foo.get(longlinelonglinelonglinelonglinelongline) instanceof
NumberNumberNumberNumber n &&
n.foo();
}
}Expected behavior:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
var a =
a &&
Foo.get(longlinelonglinelonglinelonglinelongline) instanceof
NumberNumberNumberNumber n &&
n.foo();
}
}Interestingly, removing the a && line leads to the correct output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels