@Override public boolean canCreateSubtypes() { return _referencedType.canCreateSubtypes(); }
@Override public boolean canCreateSubtypes() { return _referencedType.canCreateSubtypes(); }
/** * Method that can be used to check if call to {@link TypeResolver#resolveSubtype(ResolvedType, Class)} * will succeed for specific type; if false, it will fail with an exception; if tru it * will succeed. */ public final boolean canCreateSubtype(Class<?> subtype) { return canCreateSubtypes() && _erasedType.isAssignableFrom(subtype); }
/** * Method that can be used to check if call to {@link TypeResolver#resolveSubtype(ResolvedType, Class)} * will succeed for specific type; if false, it will fail with an exception; if tru it * will succeed. */ public final boolean canCreateSubtype(Class<?> subtype) { return canCreateSubtypes() && _erasedType.isAssignableFrom(subtype); }
if (!supertype.canCreateSubtypes()) { throw new UnsupportedOperationException("Can not subtype primitive or array types (type "+supertype.getFullDescription()+")");
if (!supertype.canCreateSubtypes()) { throw new UnsupportedOperationException("Can not subtype primitive or array types (type "+supertype.getFullDescription()+")");