Make fields of UpdateFailedException transient 26/9526/1
authorMarek Gradzki <mgradzki@cisco.com>
Wed, 22 Nov 2017 14:38:23 +0000 (15:38 +0100)
committerMarek Gradzki <mgradzki@cisco.com>
Wed, 22 Nov 2017 14:38:26 +0000 (15:38 +0100)
commitca6abb7ac148362b74d29c062df80d0ad67e723f
tree859f34f4f929dd09a541b8d58f3ad3792a07bd89
parent0827063002d7fc50b787f1e5f6bbbbdc09802787
Make fields of UpdateFailedException transient

Exceptions are Serializable.
Fields of Serializable class must be either Serializable or transient.

But DataObjects are not serializable, and there is really no reason to
serialize UpdateFailedException.

This patch excludes fields of the UpdateFailedException
from serialization process to fix Sonar warnings.

Change-Id: I1eb9408289241bb4fe6f712ed9208f8460eef317
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
infra/translate-api/src/main/java/io/fd/honeycomb/translate/write/registry/UpdateFailedException.java