Inspectopedia Help

Incorrectly configured 'util' schema beans defined in XML application context

Reports incorrect schema beans defined in XML application contexts.

<beans ... xmlns:util="https://www.springframework.org/schema/util"> <bean class="MyBean" id="myBean"/> <bean class="ErrTypeBean" id="errTypeBean"/> <util:list list-class="java.lang.String"/> // reports "Class must be inheritor of 'java.util.List'" <util:set value-type="MyBean"> <ref bean="fooBean"/> <ref bean="errTypeBean"/> // reports "Cannot be added in collection of 'MyBean' type" </util:set> </beans>

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring, 241.16690

Last modified: 29 April 2024