Skip to content

Commit

Permalink
Merge pull request #50 from IBM/incremental-analysis
Browse files Browse the repository at this point in the history
changing toList to collect(Collectors.toList()) to support Java 11 as…
  • Loading branch information
rangeetpan authored Sep 23, 2024
2 parents 7e06a77 + e5f5fa5 commit 4fe3f39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/ibm/northstar/CodeAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.nio.file.Paths;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
* The type Code analyzer.
Expand Down Expand Up @@ -129,8 +130,10 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
analysisLevel = 1;
}

// Previous code was pointing to toList, which has been introduced in Java 16
// symbolTable = SymbolTable.extract(Paths.get(input), targetFiles.stream().map(Paths::get).toList()).getLeft();
// extract symbol table for the specified files
symbolTable = SymbolTable.extract(Paths.get(input), targetFiles.stream().map(Paths::get).toList()).getLeft();
symbolTable = SymbolTable.extract(Paths.get(input), targetFiles.stream().map(Paths::get).collect(Collectors.toList())).getLeft();

// if analysis file exists, update it with new symbol table information for the specified fiels
if (analysisFileExists) {
Expand Down

0 comments on commit 4fe3f39

Please sign in to comment.