Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
refactor: Common static analysis issues
Browse files Browse the repository at this point in the history
Use this link to re-run the recipe: https://app.moderne.io/recipes/org.openrewrite.staticanalysis.CommonStaticAnalysis?organizationId=TW9kZXJuZQ%3D%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
natedanner and TeamModerne committed Apr 18, 2024
1 parent 5e406a3 commit 292b353
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public TreeVisitor<?, ExecutionContext> getScanner(AtomicReference<JavaType.Clas
@Override
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext ctx) {
JavaType.Class fqn = TypeUtils.asClass(classDecl.getType());
if (fqn != null && fqn.getClassName().equals("IdaProvider")) {
if (fqn != null && "IdaProvider".equals(fqn.getClassName())) {
acc.set(fqn);
}
return super.visitClassDeclaration(classDecl, ctx);
Expand Down

0 comments on commit 292b353

Please sign in to comment.