Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 413 Bytes

ExplicitHashSetInstantiation.md

File metadata and controls

11 lines (6 loc) · 413 Bytes

Pattern: Explicit HashSet instantiation

Issue: -

Description

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.

Further Reading