From 9fd25ca87749b967fbd8001a62b3d6d10e7652dc Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Tue, 12 Mar 2024 11:28:21 +0000 Subject: [PATCH] refactor: Common static analysis issues Use this link to re-run the recipe: https://app.moderne.io/recipes/builder/xXYPfpNDg?organizationId=T3BlblJld3JpdGU%3D Co-authored-by: Moderne --- src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java b/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java index 99df3571..71bd1389 100644 --- a/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java +++ b/src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java @@ -98,7 +98,9 @@ private boolean isVariableName(Cursor cursor, J.Identifier ident) { return vd.getModifiers().stream().noneMatch(x -> x.getType() == J.Modifier.Type.LanguageExtension && "typealias".equals(x.getKeyword())); } return true; - } else return !(value instanceof J.ParameterizedType); + } else { + return !(value instanceof J.ParameterizedType); + } } private boolean isAliasImport(Cursor cursor, J.Identifier id) {