src/main/java/io/github/classgraph/ClassInfo.java
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) {
        for (final FieldInfo fi : fieldInfoList) {
            // Index field annotations
            addFieldOrMethodAnnotationInfo(fi.annotationInfo, /* isField = */ true, classNameToClassInfo);
        }
        if (this.fieldInfo == null) {
            this.fieldInfo = fieldInfoList;
        } else {
            this.fieldInfo.addAll(fieldInfoList);
        }
    }
/**
     * Add field info.
     *
     * @param fieldInfoList
     *            the field info list
     * @param classNameToClassInfo
     *            the map from class name to class info
     */
Add field info.
@param fieldInfoList
the field info list
@param classNameToClassInfo
the map from class name to class info
Add field info . @param fieldInfoList the field info list @param classNameToClassInfo the map from class name to class info
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) {
        for (final FieldInfo fi : fieldInfoList) {
            addFieldOrMethodAnnotationInfo(fi.annotationInfo, /* isField = */ true, classNameToClassInfo);
        }
        if (this.fieldInfo == null) {
            this.fieldInfo = fieldInfoList;
        } else {
            this.fieldInfo.addAll(fieldInfoList);
        }
    }
void addFieldInfo ( final FieldInfoList fieldInfoList , final Map < String , ClassInfo > classNameToClassInfo ) { for ( final FieldInfo fi : fieldInfoList ) { addFieldOrMethodAnnotationInfo ( fi . annotationInfo , /* isField = */ true , classNameToClassInfo ) ; } if ( this . fieldInfo == null ) { this . fieldInfo = fieldInfoList ; } else { this . fieldInfo . addAll ( fieldInfoList ) ; } }
Add field info.
Add field info .
// Index field annotations