fix compilation error caused by changed API in OpenRewrite

This commit is contained in:
Martin Lippert
2023-04-01 08:18:39 +02:00
parent 9ad7311478
commit 4f44583227

View File

@@ -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