You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//formatting not works, on JDK 12switch(someParam) {
case"A" -> "AA";
default -> null;
}
//this neither, on JDK 13switch(someParam) {
case"A": yield "AA"; //this line can be { } blocked. like case "A" -> { yield "AA"; }default: yield null;
}
If some java files have switch line like examples, formatting not works for entire lines in file.
I hope i can get a solution for this issue.
Thx.
The text was updated successfully, but these errors were encountered:
Hi, apologies for the late reaction. Indeed I no longer use Java day-to-day and I don't think this extension can handle the -> form of the switch statement. That said I have updated the various dependencies and republished so you can have another go.
If things still don't work then I would contact https://github.com/jhipster/prettier-java instead. For this issue I'm happy to spend the small amount of time updating this extension to the latest version of the prettier-plugin-java if that will help. It would be more sustainable if this extension could somehow be moved into that project and I've mentioned that here jhipster/prettier-java#501. Thanks,
I appreciate for this extension.
But need some enhancement for 'switch case' grammer.
If some java files have switch line like examples, formatting not works for entire lines in file.
I hope i can get a solution for this issue.
Thx.
The text was updated successfully, but these errors were encountered: