Result of object allocation ignored
Reports object allocations where the allocated object is ignored and neither assigned to a variable nor used in another way.
Such allocation expressions are legal in Java, but are usually either unintended, or evidence of a very odd object initialization strategy.
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
ResultOfObjectAllocationIgnored
Use the options to list classes whose allocations should be ignored by this inspection.
Here you can find the description of settings available for the Result of object allocation ignored inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!