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

setIncludeResource used removeAll #5922

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

pkriens
Copy link
Member

@pkriens pkriens commented Dec 4, 2023

Somehow the author got an immutable list in the BndEditModel. The BndEditoModel was not designed for this and this will generally cause problems. The method is not used anywhere in the code base so I've deprecated it. I also made a copy of the list used in removeAll to prevent this.
This code sucks but so are many things. If you start to use the API, the onus on you is to just provide a PR and get it over with.

Fixes #5919

Signed-off-by: Peter Kriens [email protected]

Somehow the author got an immutable list in the BndEditModel. The BndEditoModel was not
designed for this and this will generally cause problems. The method is not used
anywhere in the code base so I'v deprecated it. I also made a copy of the list used
in removeAll to prevent this.
This code sucks but so are many things. If you start to use the API, the onus on you is
to just provide a PR and get it over with.

---
 Signed-off-by: Peter Kriens <[email protected]>

Signed-off-by: Peter Kriens <[email protected]>
@pkriens pkriens merged commit 082bdf2 into bndtools:master Dec 4, 2023
9 checks passed
@pkriens pkriens deleted the issue/5919-wrong-api-usage branch December 4, 2023 10:44
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

Successfully merging this pull request may close these issues.

UnsupportedOperationException when calling BndEditModel.setIncludeResource(...)
1 participant