use of com.google.devtools.j2objc.ast.Annotation in project j2objc by google.
the class TypeDeclarationGenerator method hasDeprecated.
private boolean hasDeprecated(List<Annotation> annotations) {
for (Annotation annotation : annotations) {
Name annotationTypeName = annotation.getTypeName();
String expectedTypeName = annotationTypeName.isQualifiedName() ? "java.lang.Deprecated" : "Deprecated";
if (expectedTypeName.equals(annotationTypeName.getFullyQualifiedName())) {
return true;
}
}
return false;
}
Aggregations