Skip to content

Commit

Permalink
Fix GSON bug in spring
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Krishna <[email protected]>
  • Loading branch information
rahlk committed May 23, 2024
1 parent cc81cc0 commit 677ce82
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Empty file removed output.json
Empty file.
16 changes: 9 additions & 7 deletions src/main/java/com/ibm/northstar/CodeAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
SymbolTable.extractAll(Paths.get(input));

symbolTable = symbolTableExtractionResult.getLeft();
if (output != null) {
Path outputPath = Paths.get(output);
if (!Files.exists(outputPath)) {
Files.createDirectories(outputPath);
}
gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
}
/*
* if (output != null) {
* Path outputPath = Paths.get(output);
* if (!Files.exists(outputPath)) {
* Files.createDirectories(outputPath);
* }
* gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
* }
**/

if (analysisLevel > 1) {
// Save SDG, and Call graph as JSON
Expand Down

0 comments on commit 677ce82

Please sign in to comment.