diff --git a/AlgebraicDataflowArchitectureModel/src/generators/CodeGenerator.java b/AlgebraicDataflowArchitectureModel/src/generators/CodeGenerator.java index 7792b4f..2a7db3b 100644 --- a/AlgebraicDataflowArchitectureModel/src/generators/CodeGenerator.java +++ b/AlgebraicDataflowArchitectureModel/src/generators/CodeGenerator.java @@ -466,7 +466,7 @@ protected static List getGetterMethods(TypeDeclaration component, String resourceName) { List getters = new ArrayList<>(); for (MethodDeclaration m: component.getMethods()) { - if (m.getName().startsWith(getterPrefix + resourceName)) { + if (m.getName().equals(getterPrefix + resourceName)) { getters.add(m); } }