Skip to content

Commit

Permalink
Fix typo in variable name (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar authored Jun 25, 2024
1 parent 3ae9b23 commit e2846ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ private void handleFilterMethod(
MethodInvocationTree tree, StreamTypeRecord streamType, VisitorState state) {
ExpressionTree argTree = tree.getArguments().get(0);
if (argTree instanceof NewClassTree) {
ClassTree annonClassBody = ((NewClassTree) argTree).getClassBody();
ClassTree anonClassBody = ((NewClassTree) argTree).getClassBody();
// Ensure that this `new A() ...` has a custom class body, otherwise, we skip for now.
// In the future, we could look at the declared type and its inheritance chain, at least
// for
// filters.
if (annonClassBody != null) {
handleFilterAnonClass(streamType, tree, annonClassBody, state);
if (anonClassBody != null) {
handleFilterAnonClass(streamType, tree, anonClassBody, state);
}
} else if (argTree instanceof LambdaExpressionTree) {
LambdaExpressionTree lambdaTree = (LambdaExpressionTree) argTree;
Expand Down

0 comments on commit e2846ed

Please sign in to comment.