Pattern: Missing use of empty counterpart
Issue: -
Instantiation of an object's "empty" state should use the object's "empty" initializer for clarity purposes.
Example of incorrect code:
arrayOf()
listOf() // or listOfNotNull()
mapOf()
sequenceOf()
setOf()
Example of correct code:
emptyArray()
emptyList()
emptyMap()
emptySequence()
emptySet()