Description
Singleton Collections are by their design immutable. There is no need to wrap them in an unmodifiableCollection.
https://docs.oracle.com/javase/9/docs/api/java/util/Collections.html#singletonList-T-
public static <T> List<T> singletonList​(T o) Returns an immutable list containing only the specified object.
Attachments
Issue Links
- links to