static String normalizeCollection ( final String type ) { if ( isAssignableTo ( type , Types . COLLECTION ) ) { if ( ! getTypeParameters ( type ) . isEmpty ( ) ) { return getTypeParameters ( type ) . get ( 0 ) ; } return Types . OBJECT ; } return type ; }
Normalizes the contained collection type .