Fix nullable issue in annotations rule

This commit is contained in:
Ben Gruver 2018-02-01 12:04:27 -08:00
parent fa5d0cc73a
commit 2d227a7349

View File

@ -1282,9 +1282,7 @@ annotations returns[Set<Annotation> annotations]
} }
})*) })*)
{ {
if (annotationMap.size() > 0) {
$annotations = ImmutableSet.copyOf(annotationMap.values()); $annotations = ImmutableSet.copyOf(annotationMap.values());
}
}; };
annotation returns[Annotation annotation] annotation returns[Annotation annotation]