SyntaxFix
Write A Post
Hire A Developer
Questions
Use Collections.emptyList() if you want to make sure that the returned list is never modified.
Collections.emptyList()
This is what is returned on calling emptyList():
emptyList()
/** * The empty list (immutable). */ public static final List EMPTY_LIST = new EmptyList();