private UnwrapMode unwrapMode(Field field, boolean typeArgumentAnnotated) { boolean isCollection = ReflectionHelper.isCollection( ReflectionHelper.typeOf( field ) ); UnwrapValidatedValue unwrapValidatedValue = field.getAnnotation( UnwrapValidatedValue.class ); return unwrapMode( typeArgumentAnnotated, isCollection, unwrapValidatedValue ); }
private UnwrapMode unwrapMode(ExecutableElement executable, boolean typeArgumentAnnotated) { boolean isCollection = ReflectionHelper.isCollection( ReflectionHelper.typeOf( executable.getMember() ) ); UnwrapValidatedValue unwrapValidatedValue = executable.getAccessibleObject().getAnnotation( UnwrapValidatedValue.class ); return unwrapMode( typeArgumentAnnotated, isCollection, unwrapValidatedValue ); }
boolean isCollection = ReflectionHelper.isCollection( ReflectionHelper.typeOf( executable, i ) ); UnwrapMode unwrapMode = unwrapMode( typeArgumentAnnotated, isCollection, unwrapValidatedValue );