src/main/java/org/progressify/spring/processors/StrategyProcessor.java
private List<String> processSpringGetMappingAnnotation(AnnotationMirror mirror) {
        List<String> paths = new ArrayList<String>();
        Map m = mirror.getElementValues();
        Set<ExecutableElement> s = (Set<ExecutableElement>) m.keySet();
        for (ExecutableElement e : s) {
            if (SPR_GETMAPPING_VALUE.equals(e.getSimpleName().toString())
                    || SPR_GETMAPPING_PATH.equals(e.getSimpleName().toString())) {
                AnnotationValue val = (AnnotationValue) m.get(e);
                List<AnnotationValue> listOfValues = (List<AnnotationValue>) val.getValue();
                for (AnnotationValue eachValue : listOfValues) {
                    String value = (String) eachValue.getValue();
                    paths.add(value);
                }
            }

        }
        return paths;
    }
/*
     * This method processes a Spring GetMapping and returns a list of strings
     * 
     */
This method processes a Spring GetMapping and returns a list of strings
This method processes a Spring GetMapping and returns a list of strings
private List<String> processSpringGetMappingAnnotation(AnnotationMirror mirror) {
        List<String> paths = new ArrayList<String>();
        Map m = mirror.getElementValues();
        Set<ExecutableElement> s = (Set<ExecutableElement>) m.keySet();
        for (ExecutableElement e : s) {
            if (SPR_GETMAPPING_VALUE.equals(e.getSimpleName().toString())
                    || SPR_GETMAPPING_PATH.equals(e.getSimpleName().toString())) {
                AnnotationValue val = (AnnotationValue) m.get(e);
                List<AnnotationValue> listOfValues = (List<AnnotationValue>) val.getValue();
                for (AnnotationValue eachValue : listOfValues) {
                    String value = (String) eachValue.getValue();
                    paths.add(value);
                }
            }
        }
        return paths;
    }
private List < String > processSpringGetMappingAnnotation ( AnnotationMirror mirror ) { List < String > paths = new ArrayList < String > ( ) ; Map m = mirror . getElementValues ( ) ; Set < ExecutableElement > s = ( Set < ExecutableElement > ) m . keySet ( ) ; for ( ExecutableElement e : s ) { if ( SPR_GETMAPPING_VALUE . equals ( e . getSimpleName ( ) . toString ( ) ) || SPR_GETMAPPING_PATH . equals ( e . getSimpleName ( ) . toString ( ) ) ) { AnnotationValue val = ( AnnotationValue ) m . get ( e ) ; List < AnnotationValue > listOfValues = ( List < AnnotationValue > ) val . getValue ( ) ; for ( AnnotationValue eachValue : listOfValues ) { String value = ( String ) eachValue . getValue ( ) ; paths . add ( value ) ; } } } return paths ; }
This method processes a Spring GetMapping and returns a list of strings
This method processes a Spring GetMapping and returns a list of strings