Hi folks, I was just wondering that why SonarQube raises an error when I try to use Autoired instead of dependency injection using constructor?
There seems to be a bias towards the constructor injection, but an insight would be useful!
@Service
public class MyService {
@Autowired
private SomeDependency dependency; // ← flagged by SonarQube
}