diff --git a/src/main/java/org/openrewrite/java/spring/ChangeMethodParameter.java b/src/main/java/org/openrewrite/java/spring/ChangeMethodParameter.java index 3bd60f4c0..89ce09a19 100644 --- a/src/main/java/org/openrewrite/java/spring/ChangeMethodParameter.java +++ b/src/main/java/org/openrewrite/java/spring/ChangeMethodParameter.java @@ -20,9 +20,6 @@ import org.openrewrite.*; import org.openrewrite.java.JavaIsoVisitor; import org.openrewrite.java.MethodMatcher; -import org.openrewrite.java.TypeMatcher; -import org.openrewrite.java.search.DeclaresMethod; -import org.openrewrite.java.search.DeclaresType; import org.openrewrite.java.service.ImportService; import org.openrewrite.java.tree.*; import org.openrewrite.marker.Markers; diff --git a/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/batch/UpgradeSkipPolicyParameterTypeTest.java b/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/batch/UpgradeSkipPolicyParameterTypeTest.java index cd3df7210..c330cc061 100644 --- a/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/batch/UpgradeSkipPolicyParameterTypeTest.java +++ b/src/testWithSpringBoot_3_0/java/org/openrewrite/java/spring/batch/UpgradeSkipPolicyParameterTypeTest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 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.batch; import org.junit.jupiter.api.Test; @@ -9,7 +24,7 @@ import static org.openrewrite.java.Assertions.java; -public class UpgradeSkipPolicyParameterTypeTest implements RewriteTest { +class UpgradeSkipPolicyParameterTypeTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { spec @@ -20,7 +35,7 @@ public void defaults(RecipeSpec spec) { @DocumentExample @Test - void testReplaceParameter() { + void replaceParameter() { // language=java rewriteRun( java(