Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 430 Bytes

ExplicitLinkedListInstantiation.md

File metadata and controls

11 lines (6 loc) · 430 Bytes

Pattern: Explicit LinkedList instantiation

Issue: -

Description

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

Further Reading