Skip to content

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/builder/xXYPfpNDg?organizationId=T3BlblJld3JpdGU%3D

Co-authored-by: Moderne <team@moderne.io>
  • Loading branch information
timtebeek and TeamModerne committed Mar 12, 2024
1 parent eebeb44 commit c1559bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
return mi;
}
} else if (firstArgument instanceof J.MethodInvocation &&
((J.MethodInvocation) firstArgument).getName().toString().equals("getClass")) {
"getClass".equals(((J.MethodInvocation) firstArgument).getName().toString())) {
if (!firstEnclosingClass.hasModifier(J.Modifier.Type.Final)) {
return mi;
}
Expand Down

0 comments on commit c1559bc

Please sign in to comment.