Skip to content

Commit b94873b

Browse files
committed
slim json
Signed-off-by: Rahul Krishna <[email protected]>
1 parent e2bbf7d commit b94873b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dependencies {
7878

7979
implementation 'org.apache.logging.log4j:log4j-api:2.18.0'
8080
implementation 'org.apache.logging.log4j:log4j-core:2.18.0'
81-
def walaVersion = '1.6.6'
81+
def walaVersion = '1.6.7'
8282

8383
compileOnly 'org.projectlombok:lombok:1.18.30'
8484
annotationProcessor 'org.projectlombok:lombok:1.18.30'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.0.1
1+
version=1.1.0

src/main/java/com/ibm/cldk/SystemDependencyGraph.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,13 @@ private static JSONExporter<Pair<String, Callable>, AbstractGraphEdge> getGraphE
7171
JSONExporter<Pair<String, Callable>, AbstractGraphEdge> exporter = new JSONExporter<>(
7272
pair -> {
7373
Map <String, String> vertex = new HashMap<>();
74-
vertex.put("class_interface_declarations", pair.getLeft());
75-
vertex.put("callable", gson.toJson(pair.getRight()));
74+
vertex.put("type_declaration", pair.getLeft());
75+
vertex.put("file_path", pair.getRight().getFilePath());
76+
vertex.put("signature", pair.getRight().getSignature());
77+
vertex.put("callable_declaration", pair.getRight().getDeclaration());
7678
return gson.toJson(vertex);
7779
}
7880
);
79-
// exporter.setVertexAttributeProvider(v -> v.getRight().getAttributes());
8081
exporter.setEdgeAttributeProvider(AbstractGraphEdge::getAttributes);
8182
return exporter;
8283
}

src/main/java/com/ibm/cldk/entities/Callable.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
@Data
88
public class Callable {
9+
private String filePath;
910
private String signature;
1011
private String comment;
1112
private List<String> annotations;

0 commit comments

Comments
 (0)