Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Aug 11, 2023
1 parent 7d8818a commit c4d6ff8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public DirectReturn() {}
@Override
public Description matchBlock(BlockTree tree, VisitorState state) {
List<? extends StatementTree> statements = tree.getStatements();
ClassTree enclosingNode = ASTHelpers.findEnclosingNode(state.getPath(), ClassTree.class);
if (statements.size() < 2 || HAS_LOMBOK_DATA.matches(enclosingNode, state)) {
ClassTree enclosingClass = ASTHelpers.findEnclosingNode(state.getPath(), ClassTree.class);
if (statements.size() < 2 || HAS_LOMBOK_DATA.matches(enclosingClass, state)) {
return Description.NO_MATCH;
}

Expand Down

0 comments on commit c4d6ff8

Please sign in to comment.