Skip to content

Fix getColors() to return immutable empty map on fallback - #9

Open
karlvr wants to merge 1 commit into
violetlib:masterfrom
karlvr:fix/immutable-empty-colors
Open

Fix getColors() to return immutable empty map on fallback#9
karlvr wants to merge 1 commit into
violetlib:masterfrom
karlvr:fix/immutable-empty-colors

Conversation

@karlvr

@karlvr karlvr commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

This one will fix everything that is wrong with the world. A very tiny "it's not exactly right" suggestion. The fallback path returned a mutable HashMap which doesn’t line up with the VAppearance interface contract that getColors() returns a non-modifiable map.

The fallback path returned a mutable HashMap which doesn’t line up with the VAppearance interface contract that getColors() returns a non-modifiable map.
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.

1 participant