Skip to content

Commit 44e276e

Browse files
committed
Add a few more final qualifiers, because we can
1 parent 5b0bd3f commit 44e276e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

buildSrc/src/main/groovy/java-compile-using-ecj.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class JavaCompileUsingEcj extends JavaCompile {
2929
onlyIf { !project.hasProperty('skipJavaUsingEcjTasks') }
3030
}
3131

32-
final void setSourceSet(SourceSet sourceSet) {
32+
final void setSourceSet(final SourceSet sourceSet) {
3333
// Imitate most of the behavior of the standard compilation task for the given sourceSet.
3434
final standardCompileTaskName = sourceSet.getCompileTaskName('java')
3535
final standardCompileTask = project.tasks.named(standardCompileTaskName, JavaCompile).get()
@@ -41,7 +41,7 @@ class JavaCompileUsingEcj extends JavaCompile {
4141
destinationDirectory.set project.layout.buildDirectory.dir(destinationSubdir)
4242
}
4343

44-
final static Provider<JavaCompileUsingEcj> withSourceSet(Project project, SourceSet sourceSet) {
44+
final static Provider<JavaCompileUsingEcj> withSourceSet(final Project project, final SourceSet sourceSet) {
4545
return project.tasks.register(sourceSet.getCompileTaskName('javaUsingEcj'), JavaCompileUsingEcj) { it ->
4646
it.sourceSet = sourceSet
4747
}

buildSrc/src/main/java/com/ibm/wala/gradle/EclipseJavaCompiler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class EclipseJavaCompiler implements Compiler<JavaCompileSpec> {
3232
*
3333
* @param project the project that will use this compiler
3434
*/
35-
EclipseJavaCompiler(Project project) {
35+
EclipseJavaCompiler(final Project project) {
3636
this.project = project;
3737
ecjConfiguration =
3838
project

0 commit comments

Comments
 (0)