in src/main/java/com/univocity/parsers/annotations/helpers/AnnotationHelper.java [493:517]
private static boolean allFieldsIndexOrNameBased(boolean searchName, Class<?> beanClass, MethodFilter filter) {
boolean hasAnnotation = false;
for (TransformedHeader header : getFieldSequence(beanClass, true, null, filter)) {
if (header == null || header.getTarget() == null) {
continue;
}
AnnotatedElement element = header.getTarget();
if (element instanceof Method && filter.reject((Method) element)) {
continue;
}
Parsed annotation = findAnnotation(element, Parsed.class);
if (annotation != null) {
hasAnnotation = true;
int index = AnnotationRegistry.getValue(element, annotation, "index", annotation.index());
if ((index != -1 && searchName) || (index == -1 && !searchName)) {
return false;
}
}
}
return hasAnnotation;
}