From cdf343cfdb08a2c49bfbeba085e2e55ff5aada09 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Thu, 14 Nov 2024 13:31:53 +0100 Subject: [PATCH] Delete the RemoveMethodInvocationsVisitor moved to rewrite-core --- .../RemoveMethodInvocationsVisitor.java | 74 ------------------- 1 file changed, 74 deletions(-) delete mode 100644 src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java diff --git a/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java b/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java deleted file mode 100644 index fa77372a0..000000000 --- a/src/main/java/org/openrewrite/java/spring/RemoveMethodInvocationsVisitor.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2023 the original author or authors. - *

- * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - *

- * https://www.apache.org/licenses/LICENSE-2.0 - *

- * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.openrewrite.java.spring; - -import org.openrewrite.ExecutionContext; -import org.openrewrite.java.JavaVisitor; -import org.openrewrite.java.MethodMatcher; -import org.openrewrite.java.tree.Expression; -import org.openrewrite.java.tree.J; - -import java.util.List; -import java.util.Map; -import java.util.function.Predicate; - -/** - * @deprecated for removal - * @see org.openrewrite.java.RemoveMethodInvocationsVisitor - */ -@Deprecated -public class RemoveMethodInvocationsVisitor extends JavaVisitor { - private final org.openrewrite.java.RemoveMethodInvocationsVisitor impl; - - public RemoveMethodInvocationsVisitor(Map>> matchers) { - this.impl = new org.openrewrite.java.RemoveMethodInvocationsVisitor(matchers); - } - - public RemoveMethodInvocationsVisitor(List methodSignatures) { - this.impl = new org.openrewrite.java.RemoveMethodInvocationsVisitor(methodSignatures); - } - - @Override - public J visitMethodInvocation(J.MethodInvocation method, ExecutionContext ctx) { - return impl.visitMethodInvocation(method, ctx); - } - - public static Predicate> isTrueArgument() { - return org.openrewrite.java.RemoveMethodInvocationsVisitor.isTrueArgument(); - } - - public static Predicate> isFalseArgument() { - return org.openrewrite.java.RemoveMethodInvocationsVisitor.isFalseArgument(); - } - - public static boolean isTrue(Expression expression) { - return org.openrewrite.java.RemoveMethodInvocationsVisitor.isTrue(expression); - } - - public static boolean isFalse(Expression expression) { - return org.openrewrite.java.RemoveMethodInvocationsVisitor.isFalse(expression); - } - - @Override - public J.Lambda visitLambda(J.Lambda lambda, ExecutionContext ctx) { - return impl.visitLambda(lambda, ctx); - } - - @Override - public J.Block visitBlock(J.Block block, ExecutionContext ctx) { - return impl.visitBlock(block, ctx); - } -}