@@ -87,13 +87,13 @@ void gitAttributes() throws IOException {
8787 if (Jvm .version () >= 16 ) {
8888 // for GJF https://github.com/diffplug/spotless/issues/834
8989 setFile (".mvn/jvm.config" ).toContent (
90- "--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" +
91- " --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED" +
92- " --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED" +
93- " --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED" +
94- " --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED" +
95- // this last line is for Detekt
96- " --add-opens java.base/java.lang=ALL-UNNAMED" );
90+ "--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED" +
91+ " --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED" +
92+ " --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED" +
93+ " --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED" +
94+ " --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED" +
95+ // this last line is for Detekt
96+ " --add-opens java.base/java.lang=ALL-UNNAMED" );
9797 }
9898 // copy the mvnw resources
9999 copy ("mvnw" ).setExecutable (true );
@@ -214,8 +214,8 @@ protected void writePom(String[] executions, String[] configuration, String[] de
214214
215215 protected MavenRunner mavenRunner () throws IOException {
216216 MavenRunner mavenRunner = MavenRunner .create ()
217- .withProjectDir (rootFolder ())
218- .withRunner (runner );
217+ .withProjectDir (rootFolder ())
218+ .withRunner (runner );
219219 System .getProperties ().forEach ((key , value ) -> {
220220 if (key instanceof String && ((String ) key ).startsWith ("spotless" ) && value instanceof String ) {
221221 mavenRunner .withSystemProperty ((String ) key , (String ) value );
@@ -343,8 +343,8 @@ protected static String[] formats(String... formats) {
343343
344344 protected static String [] formats (String []... formats ) {
345345 String [] formatsArray = Arrays .stream (formats )
346- .flatMap (Arrays ::stream )
347- .toArray (String []::new );
346+ .flatMap (Arrays ::stream )
347+ .toArray (String []::new );
348348 return formats (formatsArray );
349349 }
350350}
0 commit comments