Closed tisonkun closed 1 year ago
public static UncheckedIOException asUncheckedIOException(Throwable t) { if (t instanceof UncheckedIOException /* <- FormatterException here */e) { return e; } else if (t instanceof IOException e) { return new UncheckedIOException(e); } else { return new UncheckedIOException(new IOException(t)); } }
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.39.0:apply (default-cli) on project morax-proto: Unable to format file /Users/tison/Brittani/morax/morax-proto/src/main/java/org/tisonkun/morax/proto/exception/ExceptionUtils.java: com.palantir.javaformat.java.FormatterException: 57:47: error: ')' expected -> [Help 1]
Properly formatted.
The same for the new record syntax.
record
It seems my fault to set a different JDK in use.
What happened?
What did you want to happen?
Properly formatted.