Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid usages of "Optional.orElseGet(null)" leading to systematic errors #2849

Open
GlennPlou opened this issue Apr 11, 2024 · 0 comments
Open
Assignees

Comments

@GlennPlou
Copy link
Contributor

I didn't identify any scenario to illustrate any bug, but the "Optional.orElseGet(null)" code snippet shouldn't exist and sould be replaced with "Optional.orElse(null)" instead.
Identified in:

  • org.polarsys.capella.core.sirius.ui.actions.MoveRepresentationsAction.updateSelection(IStructuredSelection)
  • org.polarsys.capella.test.transition.ju.transitions.CreateRule_ScenarioUml2_01.mustBeTransitioned(String, EObject, ScenarioKind)
GlennPlou added a commit to GlennPlou/capella that referenced this issue Apr 11, 2024
…ic error

Signed-off-by: Glenn Plouhinec <glenn.plouhinec@obeo.fr>
@etraisnel2 etraisnel2 self-assigned this Apr 11, 2024
GlennPlou added a commit to GlennPlou/capella that referenced this issue Apr 11, 2024
…ic error

Signed-off-by: Glenn Plouhinec <glenn.plouhinec@obeo.fr>
GlennPlou added a commit to GlennPlou/capella that referenced this issue Apr 22, 2024
…ic error

Signed-off-by: Glenn Plouhinec <glenn.plouhinec@obeo.fr>
pdulth pushed a commit that referenced this issue Apr 30, 2024
Signed-off-by: Glenn Plouhinec <glenn.plouhinec@obeo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants