Skip to content

#collections in "Unmodifiable collectors" suggest using or mention of Stream.toList() #79

@gnahraf

Description

@gnahraf

The java.util.Stream.toList() specifies an immutable List as the return type. So the stream.collect(Collectors.toUnmodifiableList()) may be simplified to stream.toList()

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions