From 553603f97b001d97ea0abdbab2288581c7b76de9 Mon Sep 17 00:00:00 2001 From: Error Prone Team Date: Wed, 24 Mar 2021 14:18:00 -0700 Subject: [PATCH] Add a missing `@Nullable` annotation. PiperOrigin-RevId: 364889141 --- .../src/main/java/com/google/errorprone/util/ASTHelpers.java | 1 + 1 file changed, 1 insertion(+) diff --git a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java index 90bb7fd49a2..3690c75c120 100644 --- a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java +++ b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java @@ -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();