Skip to content

Commit

Permalink
Return true in case body is null just like existing EnsureNonNull han…
Browse files Browse the repository at this point in the history
…dler
  • Loading branch information
mauricioaniche committed Sep 30, 2024
1 parent 45907e1 commit 7a3d075
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 EnsuresNonNullIfHandler() {
protected boolean validateAnnotationSemantics(
MethodTree tree, MethodAnalysisContext methodAnalysisContext) {
if (tree.getBody() == null) {
return false;
return true;
}

// clean up state variables, as we are visiting a new annotated method
Expand Down

0 comments on commit 7a3d075

Please sign in to comment.