Inspectopedia
 
2024.3

Result of object allocation ignored

Warning
Performance
Last modified: 03 December 2024

Reports object allocation where the result of this operation is ignored.

Such allocation expressions are legal Groovy, but are usually either inadvertent, or evidence of a complicated object initialization strategy.