Skip to content

Commit

Permalink
Remove an unnecessary argument injection
Browse files Browse the repository at this point in the history
We don't need to inject a `Project` argument into this custom task's
constructor.  The `JavaExec` superclass already has a perfectly good
`getProject` method, and the value that it returns will already have
been initialized before we are initializing this custom task's fields.
  • Loading branch information
liblit committed Dec 9, 2023
1 parent 1144a18 commit 7315e02
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.ibm.wala.gradle

import javax.inject.Inject
import org.gradle.api.Project
import org.gradle.api.file.Directory
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.logging.LogLevel
Expand All @@ -19,7 +17,7 @@ import org.gradle.api.tasks.PathSensitivity
//

@CacheableTask
abstract class CompileKawaScheme @Inject constructor(project: Project) : JavaExec() {
abstract class CompileKawaScheme : JavaExec() {

@get:InputFile
@get:PathSensitive(PathSensitivity.NONE)
Expand Down

0 comments on commit 7315e02

Please sign in to comment.