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

Better encapsulated version of Zone.clearDrawables() #4589

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Dec 27, 2023

Identify the Bug or Feature request

Fixes #4585

Description of the Change

Only a Layer parameter is supported now instead of a List<>. The previous approach relied on .clear()ing the parameter list - previously returned by getDrawnElements() - to effect a change on the Zone, which is bad news and not supported by a prior change to returning unmodifiable lists.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A


This change is Reviewable

Only a `Layer` parameter is supported now instead of a `List<>`. The previous approach relied on `.clear()`ing the
parameter list to effect a change on the `Zone`, which is bad news.
@cwisniew cwisniew added this pull request to the merge queue Dec 30, 2023
@cwisniew cwisniew added the bug label Dec 30, 2023
Merged via the queue into RPTools:develop with commit 942ee09 Dec 30, 2023
4 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4585-clear-drawables-unsupported-operation branch January 9, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

[Bug]: UnsupportedOperationException
2 participants