Inspectopedia Help

Incorrect non-public method referenced in "factory-method" attribute

Reports non-public methods referenced in the factory-method attributes of <bean> elements.


public class MyFactory { private static FooBean createBean() {...} } }
<beans> <bean class="MyFactory" factory-method="createBean"/> // reports "Factory method 'createBean' should be public" </beans>

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring, 241.14841

Last modified: 12 March 2024