Skip to content

Commit c640d28

Browse files
committed
Polishing
1 parent 51fa98a commit c640d28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/main/java/org/springframework/build/compile/CompilerConventionsPlugin.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ private void applyJavaCompileConventions(Project project) {
8989
java.setTargetCompatibility(DEFAULT_COMPILER_VERSION);
9090

9191
project.getTasks().withType(JavaCompile.class)
92-
.matching(javaCompile -> javaCompile.getName().equals(JavaPlugin.COMPILE_JAVA_TASK_NAME))
92+
.matching(compileTask -> compileTask.getName().equals(JavaPlugin.COMPILE_JAVA_TASK_NAME))
9393
.forEach(compileTask -> {
9494
compileTask.getOptions().setCompilerArgs(COMPILER_ARGS);
9595
compileTask.getOptions().setEncoding("UTF-8");
9696
});
9797
project.getTasks().withType(JavaCompile.class)
98-
.matching(javaCompile -> javaCompile.getName().equals(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME)
99-
|| javaCompile.getName().equals("compileTestFixturesJava"))
98+
.matching(compileTask -> compileTask.getName().equals(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME)
99+
|| compileTask.getName().equals("compileTestFixturesJava"))
100100
.forEach(compileTask -> {
101101
compileTask.getOptions().setCompilerArgs(TEST_COMPILER_ARGS);
102102
compileTask.getOptions().setEncoding("UTF-8");

0 commit comments

Comments
 (0)