AutowiredConstructor
SUGGESTION
Simplification
Summary
Omit
@Autowired
on a class’ sole constructor, as it is redundant
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AutowiredConstructor")
to the enclosing element.Disable this pattern completely by adding
-Xep:AutowiredConstructor:OFF
as compiler argument. Learn more.