-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line break between instanceof and final #605
Comments
This seems to have been caused by #594, so a temporary workaround would be to downgrade to prettier-plugin-java 2.2.0. It appears to affect class Example {
void example() {
a instanceof Integer && cccccccccccccccccccccccccccccccccccccccccccccccccccc;
}
} Output: class Example {
void example() {
a instanceof Integer &&
cccccccccccccccccccccccccccccccccccccccccccccccccccc;
}
} While the following example is broken improperly: class Example {
void example() {
a instanceof Integer b && cccccccccccccccccccccccccccccccccccccccccccccccccc;
}
} Output: class Example {
void example() {
a instanceof
Integer b &&
cccccccccccccccccccccccccccccccccccccccccccccccccc;
}
} I've begun looking into fixing this. |
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Sep 17, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Sep 18, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Sep 18, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Sep 18, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Sep 18, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 27, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 27, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 29, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 29, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 29, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 29, 2023
jtkiesel
added a commit
to jtkiesel/prettier-java
that referenced
this issue
Oct 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prettier-Java 2.3.1
# Options (if any): --print-width 80
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: