void addAnnotations ( final AnnotationInfoList packageAnnotations ) { // Currently only class annotations are used in the package-info.class file if ( packageAnnotations != null && ! packageAnnotations . isEmpty ( ) ) { if ( this . annotationInfo == null ) { this . annotationInfo = new AnnotationInfoList ( packageAnnotations ) ; } else { this . annotationInfo . addAll ( packageAnnotations ) ; } } }
Add annotations found in a package descriptor classfile .