Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 405 Bytes

ExplicitStackInstantiation.md

File metadata and controls

11 lines (6 loc) · 405 Bytes

Pattern: Explicit Stack instantiation

Issue: -

Description

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

Further Reading