Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ private static Set<Name> directAnnotationsAmong(
* annotation inheritance (see JLS 9.6.4.3).
*/
public static boolean hasDirectAnnotationWithSimpleName(Symbol sym, String simpleName) {
if (sym == null) {
return false;
}
if (sym instanceof MethodSymbol) {
return hasDirectAnnotationWithSimpleName((MethodSymbol) sym, simpleName);
}
Expand Down