diff --git a/AlgebraicDataflowArchitectureModel/src/generators/CodeGeneratorFromDataFlowGraph.java b/AlgebraicDataflowArchitectureModel/src/generators/CodeGeneratorFromDataFlowGraph.java index 72aac50..960a3d7 100644 --- a/AlgebraicDataflowArchitectureModel/src/generators/CodeGeneratorFromDataFlowGraph.java +++ b/AlgebraicDataflowArchitectureModel/src/generators/CodeGeneratorFromDataFlowGraph.java @@ -213,7 +213,7 @@ Map subTerms = ((Term) exp).getSubTerms(Term.class); for (Entry termEnt: subTerms.entrySet()) { Term jsonTerm = termEnt.getValue(); - if (jsonTerm.getType() == replacedJsonType) { + if (jsonTerm.getType().equals(replacedJsonType)) { MethodDeclaration childConstructor = getConstructor(childComponent); List params = new ArrayList<>(); for (VariableDeclaration var: childConstructor.getParameters()) {