Skip to content

Commit

Permalink
Try to check local variable for validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong committed Aug 19, 2024
1 parent 9302124 commit 3c38be5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ protected boolean shouldCheckTopLevelDeclaredOrPrimitiveType(
if (type.getKind() != TypeKind.DECLARED && !type.getKind().isPrimitive()) {
return true;
}
return !TreeUtils.isLocalVariable(tree)
&& (!TreeUtils.isExpressionTree(tree) || TreeUtils.isTypeTree(tree));
return !TreeUtils.isExpressionTree(tree) || TreeUtils.isTypeTree(tree);
}

/**
Expand Down

0 comments on commit 3c38be5

Please sign in to comment.