Closed mworzala closed 2 months ago
You are right, normally new lists and maps are created for the wrapped immutables, because JEP 269 was introduced in Java 9. I'll take a look at the places where it was forgotten.
It seems that only ListBinaryTag#listBinaryTag
uses no copy, have you tested it with the CompoundBinaryTag
?
Yep you're right sorry, compound wraps it correctly I misread.
List stores an immutable view of the input lists, it should do a defensive copy (eg
List.copyOf
).