private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }
private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }
private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }
private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }
private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }
private void checkReturnTypeForWildcardsAndTypeVariables(EnhancedAnnotatedMember<T, ? super X, ? extends Member> enhancedMember, Type type, boolean isParameterizedType) { if (type instanceof TypeVariable<?>) { if (isParameterizedType) { if (!isDependent()) { throw producerWithParameterizedTypeWithTypeVariableBeanTypeMustBeDependent(enhancedMember); } } else { throw producerWithInvalidTypeVariable(enhancedMember); } } else if (type instanceof WildcardType) { throw producerWithInvalidWildcard(enhancedMember); } else if (type instanceof ParameterizedType) { ParameterizedType parameterizedType = (ParameterizedType) type; for (Type parameterType : parameterizedType.getActualTypeArguments()) { checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, parameterType, true); } } else if (type instanceof GenericArrayType) { GenericArrayType arrayType = (GenericArrayType) type; checkReturnTypeForWildcardsAndTypeVariables(enhancedMember, arrayType.getGenericComponentType(), false); } }