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
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Java version: 11.0.18, vendor: Homebrew, runtime: /usr/local/Cellar/openjdk@11/11.0.18/libexec/openjdk.jdk/Contents/Home
...
[INFO] --- spotless:2.36.0:apply (default-cli) @ test ---
[ERROR] Step 'palantir-java-format' found problem in 'src/main/java/org/test/Test.java':
No enum constant javax.lang.model.element.Modifier.SEALED
java.lang.IllegalArgumentException: No enum constant javax.lang.model.element.Modifier.SEALED
at java.lang.Enum.valueOf (Enum.java:240)
at javax.lang.model.element.Modifier.valueOf (Modifier.java:47)
at com.palantir.javaformat.java.ModifierOrderer.asModifier (ModifierOrderer.java:145)
at com.palantir.javaformat.java.ModifierOrderer.reorderModifiers (ModifierOrderer.java:59)
What happened?
Test class:
executing:
mvn -V spotless:2.36.0:apply
JDK 11
JDK 17
The text was updated successfully, but these errors were encountered: