-
-
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 content = this.longmethodname(
"long text",
(argument1, argument2, argument3, argument5) -> {
Context.a().m(1, a -> {
code;
});
}
);
}
}Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
var content = this.longmethodname(
"long text",
(argument1, argument2, argument3, argument5) -> {
Context.a().m(1, a -> {
code;
});
}
);
}
}Expected behavior:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
var content = this.longmethodname(
"long text",
(argument1, argument2, argument3, argument5) -> {
Context.a().m(1, a -> {
code;
});
}
);
}
}This also hits another bug. But this one here is for the two arguments of longmethodname - they shouldn't be indented twice.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels