Skip to content

Commit

Permalink
refactor: Common static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
2 people authored and app committed Mar 12, 2024
1 parent 892b93c commit 9fd25ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/openrewrite/kotlin/RenameTypeAlias.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9fd25ca

Please sign in to comment.