Const FixAutowiredOnSoleConstructor
FixAutowiredOnSoleConstructor: object
name
name: string = "Unnecessary @Autowired"
pushTest
pushTest: PushTest = allSatisfied(IsSpringBoot2Project)
transform
transform: function = removeAutowiredOnSoleConstructor
Type declaration
-
- (p: Project, papi: PushAwareParametersInvocation<P>, params?: P): Promise<TransformReturnable>
-
Parameters
-
p: Project
-
papi: PushAwareParametersInvocation<P>
-
Optional params: P
Returns Promise<TransformReturnable>
options
options: object
ignoreFailure
ignoreFailure: false = false
A single constructor doesn't need an @Autowired annotation