Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 419 Bytes

ExplicitTreeSetInstantiation.md

File metadata and controls

11 lines (6 loc) · 419 Bytes

Pattern: Explicit TreeSet instantiation

Issue: -

Description

This rule checks for explicit calls to the no-argument constructor of TreeSet. In Groovy, it is best to replace new TreeSet() with [] as SortedSet, which creates the same object.

Further Reading