Annotation Type HandleNull


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Inherited
    @Documented
    public @interface HandleNull
    Similar to HandleClassMetadata, put this annotation on your Converters, Serializers and Deserializers to disable Genson default null handling ( NullConverter). In that case you will have to write the code that handles nulls during serialization and deserialization of your type (and not of its content). This feature is mainly for internal use.
    Author:
    Eugen Cepoi
    See Also:
    HandleClassMetadata, NullConverter