diff --git a/src/main/base/org/bdware/sc/visitor/ContractReader.java b/src/main/base/org/bdware/sc/visitor/ContractReader.java index 81ae17e..b3bd4b8 100644 --- a/src/main/base/org/bdware/sc/visitor/ContractReader.java +++ b/src/main/base/org/bdware/sc/visitor/ContractReader.java @@ -122,7 +122,8 @@ public class ContractReader extends YJSParserBaseVisitor { SharableDeclarationContext sharableCtx = clzOrFunction.sharableDeclaration(); sharableCtx.sharableStatement().variableDeclarationList(); SharableReader reader = new SharableReader(fileName); - SharableNode sharable = reader.visitVariableDeclarationList(sharableCtx.sharableStatement().variableDeclarationList()); + SharableNode sharable = reader.visitVariableDeclarationList( + sharableCtx.sharableStatement().variableDeclarationList()); node.addSharable(sharable); } } diff --git a/src/main/base/org/bdware/sc/visitor/SharableReader.java b/src/main/base/org/bdware/sc/visitor/SharableReader.java index 045837a..3fbb4aa 100644 --- a/src/main/base/org/bdware/sc/visitor/SharableReader.java +++ b/src/main/base/org/bdware/sc/visitor/SharableReader.java @@ -18,7 +18,8 @@ public class SharableReader extends YJSParserBaseVisitor { public SharableNode visitVariableDeclarationList(YJSParser.VariableDeclarationListContext ctx) { SharableNode sharableNode = new SharableNode(); List statements = new ArrayList<>(); - for (YJSParser.VariableDeclarationContext variableDeclarationContext : ctx.variableDeclaration()) { + for (YJSParser.VariableDeclarationContext variableDeclarationContext : ctx + .variableDeclaration()) { statements.add(variableDeclarationContext.getText()); } sharableNode.setVariableStatements(statements);