Skip to content

Commit 1c9c32d

Browse files
committed
spotless
1 parent 112cc6d commit 1c9c32d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

framework/codemodder-testutils/src/main/java/io/codemodder/testutils/CodemodTestMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ private void verifyCodemod(
100100
// Check for any sarif files and build the RuleSarif map
101101
List<Path> allSarifs = new ArrayList<>();
102102
Files.newDirectoryStream(testResourceDir, "*.sarif")
103-
.iterator()
104-
.forEachRemaining(allSarifs::add);
103+
.iterator()
104+
.forEachRemaining(allSarifs::add);
105105
Map<String, List<RuleSarif>> map = SarifParser.create().parseIntoMap(allSarifs, tmpDir);
106106

107107
// run the codemod

plugins/codemodder-plugin-appscan/src/main/java/io/codemodder/providers/sarif/appscan/AppScanRuleSarif.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ public AppScanRuleSarif(
5656

5757
// add to the map if we found a matching file
5858
existingRealPath.ifPresent(
59-
p ->
60-
artifactLocationIndices
61-
.computeIfAbsent(p, k -> new HashSet<>())
62-
.add(index));
59+
p -> artifactLocationIndices.computeIfAbsent(p, k -> new HashSet<>()).add(index));
6360
}
6461
this.artifactLocationIndices = Map.copyOf(artifactLocationIndices);
6562
}

plugins/codemodder-plugin-appscan/src/test/java/io/codemodder/providers/sarif/appscan/AppScanRuleSarifFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ void it_parses_sarif_and_maps_java_locations(@TempDir final Path tmpDir) throws
5353

5454
// get the results for the file path (not the weird HCL thing) and confirm we have the right
5555
// results
56-
List<Result> resultsForPath = ruleSarif.getResultsByLocationPath(actualAssignmentedJavaFilePath);
56+
List<Result> resultsForPath =
57+
ruleSarif.getResultsByLocationPath(actualAssignmentedJavaFilePath);
5758
assertThat(resultsForPath).isNotEmpty();
5859

5960
// get the regions affected by the given file

0 commit comments

Comments
 (0)