XML
Incorrect non-public method referenced in "factory-method" attribute
Warning
New
Last modified: 03 December 2024Reports non-public methods referenced in the factory-method
attributes of <bean> elements.
Example:
public class MyFactory {
private static FooBean createBean() {...}
}
}
<beans>
<bean class="MyFactory" factory-method="createBean"/>
// reports "Factory method 'createBean' should be public"
</beans>
- 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.
SpringPublicFactoryMethodInspection
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Spring, 243.23126 |
Thanks for your feedback!
Was this page helpful?