Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 449 Bytes

ExplicitLinkedHashMapInstantiation.md

File metadata and controls

11 lines (6 loc) · 449 Bytes

Pattern: Explicit LinkedHashMap instantiation

Issue: -

Description

This rule checks for the explicit instantiation of a LinkedHashMap using the no-arg constructor. In Groovy, it is best to replace new LinkedHashMap() with [:], which creates the same object.

Further Reading