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
{{ message }}
Repository navigation
Java 17 Pattern Matching for Switch (JEP-406) compatibility issue #684
This is fixed now: the formatter didn't support pattern matching in switches on Java 17 at all, and there was a separate issue specifically about unused imports. Thanks for the report!
Activity
lorenzleutgeb commentedon Nov 19, 2021
This appears to be a duplicate of #683 (which turns out to not only apply when throwing exceptions).
Fix handling of case patterns in unused import removal
Fix handling of case patterns in unused import removal
Update handling of pattern matching in switch
Update handling of pattern matching in switch
cushon commentedon Nov 19, 2021
This is fixed now: the formatter didn't support pattern matching in switches on Java 17 at all, and there was a separate issue specifically about unused imports. Thanks for the report!
Update handling of pattern matching in switch
Update handling of pattern matching in switch
Fix handling of case patterns in unused import removal
Update handling of pattern matching in switch
Fix handling of case patterns in unused import removal
Update handling of pattern matching in switch