Skip to content

Minor bug fixes#13

Open
karlvr wants to merge 4 commits intovioletlib:masterfrom
karlvr:fix/minor-bug-fixes
Open

Minor bug fixes#13
karlvr wants to merge 4 commits intovioletlib:masterfrom
karlvr:fix/minor-bug-fixes

Conversation

@karlvr
Copy link
Copy Markdown

@karlvr karlvr commented Mar 17, 2026

A small collection of minor bug fixes in separate commits. The most interesting is the Arrays.asList, which returns a list backed by the array and so cannot be added to, including a gotcha when you look at the implementation of Arrays.asList and it looks like it uses our friend java.util.ArrayList!

karlvr added 4 commits March 18, 2026 05:57
…xelCount

Copy-paste error in the opaque pixel count diagnostic message.
…ashCode

The thumbExtent field was stored and returned via getThumbExtent() but
was not included in equality or hash code checks, so configurations
with different thumb extents would compare as equal.
This is a doozy… Arrays.asList() returns a fixed-size list, so addAll() would throw
UnsupportedOperationException if extraParameters was ever non-null. When you go to look at the implementation of Arrays.asList and see the new ArrayList… it’s actually an inner class with the same name as the ubiquitous java.util version!
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