Inspectopedia Help

Result of object allocation ignored

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.

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Groovy, 241.16690

Last modified: 29 April 2024