Incorrectly defined method referenced in "factory-method" attribute
Reports incorrect method references in the factory-method
attribute of the <bean>
element.
Example:
public class MyFactory {
public static FooBean createBean() {}
}
<beans>
<bean class="MyFactory" id="factory"/>
<bean factory-bean="factory" factory-method="createBean"/> <!-- Factory method 'createBean' must not be static -->
</beans>
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Spring, 233.SNAPSHOT |
Last modified: 13 July 2023