common/src/main/java/com/kakoo/foundation/common/resource/bundle/annotation/BundleAnnotationTypeVisitor.java
/**
     * Reports annotated types with the @Bundle annotation.
     * <p>
     * @param annotatedClassName Annotated class name.
     */
Reports annotated types with the @Bundle annotation.

@param annotatedClassName Annotated class name.
Reports annotated types with the @Bundle annotation . @param annotatedClassName Annotated class name .
@SuppressWarnings("unchecked")
    private void reportTypeAnnotationBundle(final @NonNull  String annotatedClassName)
    {
        List<String> classes;
        Map<Integer, List<String>> ordered;
        try
        {
            Class<? extends IBundle> bundleAnnotatedClass = (Class<? extends IBundle>) Class.forName(annotatedClassName);
            Bundle bundle = bundleAnnotatedClass.getAnnotation(Bundle.class);
            ordered = annotated.get(Bundle.class);
            if (ordered == null)
            {
                ordered = new TreeMap<>();
            }
            classes = ordered.get(bundle.priority());
            if (classes == null)
            {
                classes = new ArrayList<>();
            }
            classes.add(annotatedClassName);
            ordered.put(bundle.priority(), classes);
            annotated.put(Bundle.class, ordered);
        }
        catch (ClassNotFoundException e)
        {
            log.error(e.getMessage());
        }
    }
@ SuppressWarnings ( "unchecked" ) private void reportTypeAnnotationBundle ( final @ NonNull String annotatedClassName ) { List < String > classes ; Map < Integer , List < String > > ordered ; try { Class < ? extends IBundle > bundleAnnotatedClass = ( Class < ? extends IBundle > ) Class . forName ( annotatedClassName ) ; Bundle bundle = bundleAnnotatedClass . getAnnotation ( Bundle . class ) ; ordered = annotated . get ( Bundle . class ) ; if ( ordered == null ) { ordered = new TreeMap < > ( ) ; } classes = ordered . get ( bundle . priority ( ) ) ; if ( classes == null ) { classes = new ArrayList < > ( ) ; } classes . add ( annotatedClassName ) ; ordered . put ( bundle . priority ( ) , classes ) ; annotated . put ( Bundle . class , ordered ) ; } catch ( ClassNotFoundException e ) { log . error ( e . getMessage ( ) ) ; } }
Reports annotated types with the @Bundle annotation.
Reports annotated types with the @Bundle annotation .