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 380b3df commit e9e561e
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 @@ -15,7 +13,7 @@ import org.gradle.api.tasks.PathSensitivity

/** Specialized task for Kawa compilation into jar archive. */
@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 e9e561e

Please sign in to comment.