Reports incorrect usages of @Autowired on Spring bean constructors:
more than one @Autowired constructor, no matching @Autowired constructor, and so on.
Example:
@Component
public class MyComponent {
@Autowired
public MyComponent(BarBean bean) {...} // reports 'Only one @Autowired constructor is allowed'
@Autowired
public MyComponent(FooBean bean) {...} // reports 'Only one @Autowired constructor is allowed'
}
@Component
public class MyFactory { // reports ' No matching @Autowired constructor'
public MyFactory(String str) {...}
public MyFactory(int count) {...}
}