Skip to content

Commit 677ce82

Browse files
committed
Fix GSON bug in spring
Signed-off-by: Rahul Krishna <[email protected]>
1 parent cc81cc0 commit 677ce82

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

output.json

Whitespace-only changes.

src/main/java/com/ibm/northstar/CodeAnalyzer.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
117117
SymbolTable.extractAll(Paths.get(input));
118118

119119
symbolTable = symbolTableExtractionResult.getLeft();
120-
if (output != null) {
121-
Path outputPath = Paths.get(output);
122-
if (!Files.exists(outputPath)) {
123-
Files.createDirectories(outputPath);
124-
}
125-
gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
126-
}
120+
/*
121+
* if (output != null) {
122+
* Path outputPath = Paths.get(output);
123+
* if (!Files.exists(outputPath)) {
124+
* Files.createDirectories(outputPath);
125+
* }
126+
* gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
127+
* }
128+
**/
127129

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

0 commit comments

Comments
 (0)