Reports unresolved method references on initMethod and destroyMethod parameters
of the @Bean annotation.
Example:
"Cannot resolve method" will be reported on 'doInit' expression if MyBean class doesn't contain 'public void 'doInit'(){...}' method
public class MyBean {...}
@Component
public class MyComponent {
@Bean(initMethod="doInit" )
public MyBean myBean() {...}
}
In this example, the inspection will report an unresolved method reference if MyBean doesn't define the doInit() method.