Inspectopedia
 
2024.3

Collection added to itself

Warning
New
Last modified: 03 December 2024

Reports cases where the argument of a method call on a java.util.Collection or java.util.Map is the collection or map itself. Such situations may occur as a result of copy-paste in code with raw types.

Example: