Skip to content

Commit

Permalink
Internal Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568202207
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Sep 25, 2023
1 parent f60d3f5 commit 9d9cdf2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import static com.google.errorprone.fixes.SuggestedFixes.compilesWithFix;
import static com.google.errorprone.matchers.Description.NO_MATCH;
import static com.google.errorprone.util.ASTHelpers.getDeclaredSymbol;
import static com.google.errorprone.util.ASTHelpers.getEnclosedElements;
import static com.google.errorprone.util.ASTHelpers.getSymbol;
import static com.sun.source.tree.Tree.Kind.EXPRESSION_STATEMENT;
import static com.sun.source.tree.Tree.Kind.IDENTIFIER;
Expand Down Expand Up @@ -644,7 +645,7 @@ static MemberType from(Tree tree, VisitorState state) {
private static boolean overrides(
MethodSymbol potentialOverrider, String clazz, String method, VisitorState state) {
Symbol overridable =
state.getTypeFromString(clazz).tsym.getEnclosedElements().stream()
getEnclosedElements(state.getTypeFromString(clazz).tsym).stream()
.filter(s -> s.getKind() == METHOD)
.filter(m -> m.getSimpleName().contentEquals(method))
.collect(onlyElement());
Expand Down

0 comments on commit 9d9cdf2

Please sign in to comment.