ArrayList<Issue> result = new ArrayList<Issue>();\r
\r
\r
- StandardIssue noSuchVariableIssue = null;\r
- // Check that all references have corresponding arrows\r
- if(references != null && dependencies != null) {\r
- for(String reference : references) {\r
- if(!dependencies.contains(reference)) {\r
- Resource variable = null;\r
- if((variable = ValidationUtils.reach(graph, component, reference)) != null) {\r
- result.add(new StandardIssue(sr.Validations_MissingLinkIssue, component, variable));\r
- } else {\r
- if(noSuchVariableIssue == null) {\r
+// StandardIssue noSuchVariableIssue = null;\r
+// // Check that all references have corresponding arrows\r
+// if(references != null && dependencies != null) {\r
+// for(String reference : references) {\r
+// if(!dependencies.contains(reference)) {\r
+// Resource variable = null;\r
+// if((variable = ValidationUtils.reach(graph, component, reference)) != null) {\r
+// result.add(new StandardIssue(sr.Validations_MissingLinkIssue, component, variable));\r
+// } else {\r
+// if(noSuchVariableIssue == null) {\r
// noSuchVariableIssue = new StandardIssue(sr.Validations_NoSuchVariableIssue, component);\r
// result.add(noSuchVariableIssue);\r
- }\r
- }\r
- } \r
- }\r
- }\r
+// }\r
+// }\r
+// } \r
+// }\r
+// }\r
\r
// Check that all arrow dependencies are used in equations\r
if(dependencies != null) {\r
} catch (UndefinedExpressionException e) {\r
}\r
\r
+ ArrayList<Issue> result = new ArrayList<Issue>();\r
+\r
+ StandardIssue noSuchVariableIssue = null;\r
// Check that all references have corresponding arrows\r
if(references != null && dependencies != null) {\r
for(String reference : references) {\r
if(!dependencies.contains(reference)) {\r
- if(ValidationUtils.reach(graph, component, reference) == null) {\r
- return Collections.<Issue>singletonList(new StandardIssue(sr.Validations_NoSuchVariableIssue, component));\r
+ Resource variable = null;\r
+ if((variable = ValidationUtils.reach(graph, component, reference)) != null) {\r
+ result.add(new StandardIssue(sr.Validations_MissingLinkIssue, component, variable));\r
+ } else {\r
+ if(noSuchVariableIssue == null) {\r
+ noSuchVariableIssue = new StandardIssue(sr.Validations_NoSuchVariableIssue, component);\r
+ result.add(noSuchVariableIssue);\r
+ }\r
}\r
} \r
}\r
}\r
\r
- return Collections.emptyList();\r
+ return result;\r
\r
}\r
\r