| Summary: | Remove Sets call in ContainerMappingHelper to avoid a guava dependency | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Pierre-Charles David <pierre-charles.david> |
| Component: | Core | Assignee: | Project inbox <sirius.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | laurent.fasani, pierre-charles.david, sirius.core-inbox, steve.monnier |
| Version: | 6.1.2 | ||
| Target Milestone: | 6.2.2 | ||
| Hardware: | PC | ||
| OS: | Windows 10 | ||
| See Also: |
https://git.eclipse.org/r/142870 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3a12bac006c3645a13f4313af2ce2d63c7034e53 https://git.eclipse.org/r/143932 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9aa7ea2183c8752b93d0daad0e0311829903154c |
||
| Whiteboard: | |||
| Bug Depends on: | 546769 | ||
| Bug Blocks: | |||
|
Description
Pierre-Charles David
New Gerrit change created: https://git.eclipse.org/r/142870 Gerrit change https://git.eclipse.org/r/142870 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=3a12bac006c3645a13f4313af2ce2d63c7034e53 Fixed by 3a12bac006c3645a13f4313af2ce2d63c7034e53. Les mapping ne sont plus rendus dans le même ordre JavaDoc de java.util.AbstractCollection.addAll(Collection<? extends E>) > The behavior of this operation is undefined ifthe specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if thespecified collection is this collection, and this collection isnonempty.) Au contraire, Sets.union de guava garde l'ordre des Set si l'implem de Set le permet On devrait plutôt utiliser les Stream java JavaDoc de Stream.concat > Creates a lazily concatenated stream whose elements are all theelements of the first stream followed by all the elements of thesecond stream. The resulting stream is ordered if bothof the input streams are ordered Cela donnerait ca pour fixer: Stream.concat(new LinkedHashSet<NodeMapping>(self.getSubNodeMappings()).stream(),new LinkedHashSet<NodeMapping>(self.getReusedNodeMappings()).stream()) New Gerrit change created: https://git.eclipse.org/r/143932 Gerrit change https://git.eclipse.org/r/143932 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=9aa7ea2183c8752b93d0daad0e0311829903154c Available in Sirius 6.2.2, see https://wiki.eclipse.org/Sirius/6.2.2 |