Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 386 Bytes

UnnecessaryCollectionCall.md

File metadata and controls

11 lines (6 loc) · 386 Bytes

Pattern: Unnecessary collection call

Issue: -

Description

Checks for useless calls to collections. For any collection c, calling c.containsAll(c) should always be true, and c.retainAll(c) should have no effect.

Further Reading