Prettier-Java 2.9.2
Playground link
Input:
return foo(
a.getOrDefault("b", a.get("c")) // handle
);
Output:
return foo(
a
.getOrDefault("b", a.get("c")) // handle
);
Expected behavior:
return foo(
a.getOrDefault("b", a.get("c")) // handle
);
Prettier for JavaScript does the right thing.
Prettier-Java 2.9.2
Playground link
Input:
Output:
Expected behavior:
Prettier for JavaScript does the right thing.