fix compilation error caused by changed API in OpenRewrite
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2022 VMware, Inc.
|
||||
* Copyright (c) 2022, 2023 VMware, Inc.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
@@ -35,7 +35,7 @@ public class ConvertAutowiredFieldIntoConstructorParameter extends Recipe {
|
||||
|
||||
@Override
|
||||
protected TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
|
||||
return new UsesType<ExecutionContext>(AUTOWIRED);
|
||||
return new UsesType<ExecutionContext>(AUTOWIRED, Boolean.TRUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user