Pattern: Explicit HashSet
instantiation
Issue: -
This rule checks for explicit calls to the no-argument constructor of HashSet
. In Groovy, it is best to replace new HashSet()
with [] as Set
, which creates the same object.
Pattern: Explicit HashSet
instantiation
Issue: -
This rule checks for explicit calls to the no-argument constructor of HashSet
. In Groovy, it is best to replace new HashSet()
with [] as Set
, which creates the same object.