Skip to content

Commit

Permalink
Delete OptionalEmptinessHandler method that is no longer needed (#954)
Browse files Browse the repository at this point in the history
Fixes #953
  • Loading branch information
msridhar committed May 14, 2024
1 parent a017158 commit c26ae17
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import java.util.Optional;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Predicate;
import javax.annotation.Nullable;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.Element;
Expand Down Expand Up @@ -164,21 +163,6 @@ private boolean isOptionalContentNullable(
== Nullness.NULLABLE;
}

@Override
public Predicate<AccessPath> getAccessPathPredicateForNestedMethod(
TreePath path, VisitorState state) {
return ap -> {
if (ap.getElements().size() == 1) {
final Element e = ap.getRoot();
if (e != null) {
return e.getKind().equals(ElementKind.LOCAL_VARIABLE)
&& ap.getElements().get(0).getJavaElement() instanceof OptionalContentVariableElement;
}
}
return false;
};
}

private void handleTestAssertions(
VisitorState state,
AccessPath.AccessPathContext apContext,
Expand Down

0 comments on commit c26ae17

Please sign in to comment.