Loading src/main/java/tfm/graphs/sdg/MethodCallReplacerVisitor.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ class MethodCallReplacerVisitor extends VoidVisitorAdapter<Context> { GraphNode<EmptyStmt> declarationOutputNode = optionalDeclarationOutputNode.get(); // If method has output node, then create output call node and link them GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_CALL_RETURN)); GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_OUTPUT)); sdg.addControlDependencyArc(methodCallNode, callReturnNode); sdg.addReturnArc(callReturnNode, originalMethodCallNode); Loading src/main/java/tfm/nodes/type/NodeType.java +1 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,5 @@ public enum NodeType { * has been modified in a method declaration. */ FORMAL_OUT, /** A node representing the return value of a non-void method declaration. */ METHOD_OUTPUT, /** A node representing the return value of a non-void method call. */ METHOD_CALL_RETURN, METHOD_OUTPUT } Loading
src/main/java/tfm/graphs/sdg/MethodCallReplacerVisitor.java +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ class MethodCallReplacerVisitor extends VoidVisitorAdapter<Context> { GraphNode<EmptyStmt> declarationOutputNode = optionalDeclarationOutputNode.get(); // If method has output node, then create output call node and link them GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_CALL_RETURN)); GraphNode<EmptyStmt> callReturnNode = sdg.addNode("output", new EmptyStmt(), TypeNodeFactory.fromType(NodeType.METHOD_OUTPUT)); sdg.addControlDependencyArc(methodCallNode, callReturnNode); sdg.addReturnArc(callReturnNode, originalMethodCallNode); Loading
src/main/java/tfm/nodes/type/NodeType.java +1 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,5 @@ public enum NodeType { * has been modified in a method declaration. */ FORMAL_OUT, /** A node representing the return value of a non-void method declaration. */ METHOD_OUTPUT, /** A node representing the return value of a non-void method call. */ METHOD_CALL_RETURN, METHOD_OUTPUT }