Skip to content

Commit

Permalink
Add a missing @Nullable annotation.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 364889141
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Mar 24, 2021
1 parent 3e14f54 commit 553603f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ public Tree visitParameterizedType(ParameterizedTypeTree tree, Void unused) {
}

/** Return the enclosing {@code ClassSymbol} of the given symbol, or {@code null}. */
@Nullable
public static ClassSymbol enclosingClass(Symbol sym) {
// sym.owner is null in the case of module symbols.
return sym.owner == null ? null : sym.owner.enclClass();
Expand Down

0 comments on commit 553603f

Please sign in to comment.