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

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Spring, 233.SNAPSHOT

Last modified: 13 July 2023