use of org.checkerframework.framework.util.DefaultAnnotationFormatter in project checker-framework by typetools.
the class AnnotationUtils method toStringSimple.
/**
* Returns a string representation of the annotation mirrors, using simple (not fully-qualified)
* names.
*
* @param annos annotations to format
* @return the string representation, using simple (not fully-qualified) names
*/
@SideEffectFree
public static String toStringSimple(Set<AnnotationMirror> annos) {
DefaultAnnotationFormatter defaultAnnotationFormatter = new DefaultAnnotationFormatter();
StringJoiner result = new StringJoiner(" ");
for (AnnotationMirror am : annos) {
result.add(defaultAnnotationFormatter.formatAnnotationMirror(am));
}
return result.toString();
}
Aggregations