Skip to content

Commit d9bb651

Browse files
committed
ST6RI-886 Corrected local variable naming in MinimizeFunction.
- maxFunction -> minFunction, maxInvocation -> minInvocaion
1 parent b6822f4 commit d9bb651

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.omg.sysml.execution/src/org/omg/sysml/execution/expressions/functions/control/MinimizeFunction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public Element apply(Element result, Element value) {
5858
} else if (result == null) {
5959
return exprValue.get(0);
6060
} else {
61-
Type maxFunction = SysMLLibraryUtil.getLibraryType(expr, MIN_FUNCTION);
62-
InvocationExpression maxInvocation = EvaluationUtil.createInvocationOf(maxFunction, result, exprValue.get(0));
63-
EList<Element> newResult = evaluator.evaluateInvocation(maxInvocation, target);
61+
Type minFunction = SysMLLibraryUtil.getLibraryType(expr, MIN_FUNCTION);
62+
InvocationExpression minInvocation = EvaluationUtil.createInvocationOf(minFunction, result, exprValue.get(0));
63+
EList<Element> newResult = evaluator.evaluateInvocation(minInvocation, target);
6464
return newResult == null || newResult.size() != 1? null: newResult.get(0);
6565
}
6666
}

0 commit comments

Comments
 (0)