Skip to content

Commit

Permalink
[2208] CCE when using Show/Hide Functional Exchanges tool
Browse files Browse the repository at this point in the history
Bug: 2208
Change-Id: Id7b56afeb9ac02c6919bb2ad24c67d3286056194
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat committed Sep 27, 2018
1 parent cc72dac commit 71c31d8
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -290,7 +290,7 @@ public List<FunctionalExchange> getAvailableFunctionalExchangesToInsert(DSemanti
* (DataFlow Blank Diagrams) used in oa, logical, context, physical
*/
public Collection<FunctionalExchange> getDisplayedFunctionalExchanges(DSemanticDecorator selectedElement) {
Collection<FunctionalExchange> result = new HashSet<FunctionalExchange>();
Collection<FunctionalExchange> result = new HashSet<>();
// current DiagramElements
if (selectedElement instanceof AbstractDNode) {
result = getDisplayedFunctionalExchangesFromAbstractDNode((AbstractDNode) selectedElement);
Expand All @@ -313,7 +313,9 @@ public Collection<FunctionalExchange> getDisplayedFunctionalExchanges(DSemanticD
}
}

return result;
// This cast to ArrayList is necessary since this method is also used in Transfer Wizard service which expects a
// List as parameter
return new ArrayList<>(result);
}

/**
Expand Down

0 comments on commit 71c31d8

Please sign in to comment.