Closed SMadani closed 5 months ago
Merging #521 (d67fa1e) into main (5f6687d) will increase coverage by
0.03%
. The diff coverage is96.15%
.:exclamation: Current head d67fa1e differs from pull request most recent head 2ec1405. Consider uploading reports for the commit 2ec1405 to get more accurate results
All classes in the SDK which model JSON objects use the annotations
@JsonIgnoreProperties(ignoreUnknown = true)
and@JsonInclude(value = JsonInclude.Include.NON_NULL)
. This adds needless overhead to creating new classes and nested classes, since they may be easily forgotten. It also makes classes less readable. Since this is the default policy applied across the SDK, it makes sense to configure this at the top level to avoid this repetition. The major refactoring that has occurred since v7.7.0, with the introduction of theJsonable
interface (and later,JsonableBaseObject
class) that all domain classes now implement, there is a convenient way to do this using theJsonable#createDefaultObjectMapper()
method. For the rare cases where default configuration needs to be overriden,JsonableBaseObject#createJsonObjectMapper()
has been added.This PR also removes the unused and deprecated
com.vonage.client.sms.HexUtil
class as it is not part of the public API.