Skip to content

Commit 553603f

Browse files
java-team-github-botError Prone Team
authored and
Error Prone Team
committedMar 24, 2021
Add a missing @Nullable annotation.
PiperOrigin-RevId: 364889141
1 parent 3e14f54 commit 553603f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java

+1
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,7 @@ public Tree visitParameterizedType(ParameterizedTypeTree tree, Void unused) {
10241024
}
10251025

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

0 commit comments

Comments
 (0)
Please sign in to comment.