Skip to content

Commit ecdfed7

Browse files
Reorder maybeRemoveImport before maybeAddImport
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.java.recipes.RemoveImportBeforeAddImport?organizationId=QUxML01vZGVybmUvTW9kZXJuZSArIE9wZW5SZXdyaXRl Co-authored-by: Moderne <team@moderne.io>
1 parent d08d676 commit ecdfed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/dropwizard/method/ChangeSuperType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ public J.ClassDeclaration visitClassDeclaration(
8888

8989
String typeParams = getTypeParams(cd.getExtends());
9090

91-
maybeAddImport(newSuperclass);
9291
maybeRemoveImport(targetClass);
92+
maybeAddImport(newSuperclass);
9393

9494
JavaTemplate extendsTemplate = JavaTemplate.builder(newSuperclass + typeParams)
9595
// TODO runtimeClasspath() might be different in other recipe run environments

0 commit comments

Comments
 (0)