Prettier-Java 2.7.7
Playground link
Input:
void main() {
try (x) {
} catch (IOException exception) {
}
}
Output:
void main() {
try (x) {} catch (IOException exception) {}
}
Expected behavior:
void main() {
try (x) {
} catch (IOException exception) {
}
}
Or maybe:
void main() {
try (x) {
} catch (IOException exception) {}
}
Because it becomes very strange if there is something in the catch block:
void main() {
try (x) {} catch (IOException exception) {
LOGGER.error();
}
}
Prettier-Java 2.7.7
Playground link
Input:
Output:
Expected behavior:
Or maybe:
Because it becomes very strange if there is something in the
catchblock: