@SuppressWarnings("unchecked") @Override public <T> T getSerializerOptions(Class<T> serilizerOptions, ContextURL contextUrl, boolean references) throws ContentNegotiatorException { if (serilizerOptions.isAssignableFrom(PrimitiveSerializerOptions.class)) { return (T) PrimitiveSerializerOptions.with().contextURL(contextUrl) .nullable(getReturnType().isNullable()) .maxLength(getReturnType().getMaxLength()) .precision(getReturnType().getPrecision()) .scale(getReturnType().getScale()) .unicode(null) .build(); } return super.getSerializerOptions(serilizerOptions, contextUrl, references); }
@SuppressWarnings("unchecked") @Override public <T> T getSerializerOptions(Class<T> serilizerOptions, ContextURL contextUrl, boolean references) throws ContentNegotiatorException { if (serilizerOptions.isAssignableFrom(PrimitiveSerializerOptions.class)) { return (T) PrimitiveSerializerOptions.with().contextURL(contextUrl) .nullable(getReturnType().isNullable()) .maxLength(getReturnType().getMaxLength()) .precision(getReturnType().getPrecision()) .scale(getReturnType().getScale()) .unicode(null) .build(); } return super.getSerializerOptions(serilizerOptions, contextUrl, references); }
@SuppressWarnings("unchecked") @Override public <T> T getSerializerOptions(Class<T> serilizerOptions, ContextURL contextUrl, boolean references) throws ContentNegotiatorException { if (hasReturnType() && serilizerOptions.isAssignableFrom(PrimitiveSerializerOptions.class)) { return (T) PrimitiveSerializerOptions.with().contextURL(contextUrl) .nullable(getReturnType().isNullable()) .maxLength(getReturnType().getMaxLength()) .precision(getReturnType().getPrecision()) .scale(getReturnType().getScale()) .unicode(null) .build(); } return super.getSerializerOptions(serilizerOptions, contextUrl, references); }
@SuppressWarnings("unchecked") @Override public <T> T getSerializerOptions(Class<T> serilizerOptions, ContextURL contextUrl, boolean references) throws ContentNegotiatorException { if (hasReturnType() && serilizerOptions.isAssignableFrom(PrimitiveSerializerOptions.class)) { return (T) PrimitiveSerializerOptions.with().contextURL(contextUrl) .nullable(getReturnType().isNullable()) .maxLength(getReturnType().getMaxLength()) .precision(getReturnType().getPrecision()) .scale(getReturnType().getScale()) .unicode(null) .build(); } return super.getSerializerOptions(serilizerOptions, contextUrl, references); }