Skip to content

Commit

Permalink
Allow all immutable List subclasses from Java 11
Browse files Browse the repository at this point in the history
A previous commit specifically allowed one of the two subclasses used by
`List.of` and `List.copyOf`, but not the other, which can result in
unexpected errors and bugs. Add the other to the default allow list of
classes to avoid these.
  • Loading branch information
mtughan committed Dec 9, 2024
1 parent f6802dd commit fc4a567
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ java.util.HashMap
java.util.HashSet
java.util.Hashtable
java.util.ImmutableCollections$List12
java.util.ImmutableCollections$ListN
java.util.LinkedHashMap
java.util.LinkedHashSet
java.util.LinkedList
Expand Down

0 comments on commit fc4a567

Please sign in to comment.