From 7315e02381faf06c562a9640049bb9b1f9442c75 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Sat, 9 Dec 2023 16:04:58 -0500 Subject: [PATCH] Remove an unnecessary argument injection 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. --- .../src/main/kotlin/com/ibm/wala/gradle/CompileKawaScheme.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build-logic/src/main/kotlin/com/ibm/wala/gradle/CompileKawaScheme.kt b/build-logic/src/main/kotlin/com/ibm/wala/gradle/CompileKawaScheme.kt index 275d181707..73a48b9615 100644 --- a/build-logic/src/main/kotlin/com/ibm/wala/gradle/CompileKawaScheme.kt +++ b/build-logic/src/main/kotlin/com/ibm/wala/gradle/CompileKawaScheme.kt @@ -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 @@ -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)