Skip to content

Commit 8960e80

Browse files
update after code review
1 parent 057f4c2 commit 8960e80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/sonarqube/gradle/SonarResolverTask.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ void run() throws IOException {
102102
LOGGER.info("Resolving properties for " + displayName + ".");
103103
}
104104

105-
var compile = compileClasspath.getOrNull();
106-
var test = testCompileClasspath.getOrNull();
105+
var mainClasspath = this.compileClasspath.getOrNull();
106+
var testClasspath = testCompileClasspath.getOrNull();
107107

108-
List<String> compileClasspathFilenames = SonarUtils.exists(compile == null ? List.of() : compile)
108+
List<String> compileClasspathFilenames = SonarUtils.exists(mainClasspath == null ? List.of() : mainClasspath)
109109
.stream()
110110
.map(File::getAbsolutePath)
111111
.collect(Collectors.toList());
112-
List<String> testCompileClasspathFilenames = SonarUtils.exists(test == null ? List.of() : test)
112+
List<String> testCompileClasspathFilenames = SonarUtils.exists(testClasspath == null ? List.of() : testClasspath)
113113
.stream()
114114
.map(File::getAbsolutePath)
115115
.collect(Collectors.toList());

0 commit comments

Comments
 (0)