Add jackson behavior for fields 15/78315/3
authorJim Hahn <jrh3@att.com>
Tue, 12 Feb 2019 16:20:13 +0000 (11:20 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 12 Feb 2019 17:32:22 +0000 (12:32 -0500)
commitd7df51a00c9ec3eca4fa5e6f784ba4d52d4f9f89
treea84f1d42935f7144d32552eae5943ab065d2cf10
parent13ca63c40a379f95539cb4882ec2b645cd0c2a48
Add jackson behavior for fields

Added classes to make gson treat fields as jackson does.
Added check for input OR output fields.
Corrected comment about annotation names.
Removed trailing spaces.
Extracted some string constants.
Fixed checkstyle issue.

Change-Id: I665b31774086d72a5a95bee6cf3486a019b72402
Issue-ID: POLICY-1428
Signed-off-by: Jim Hahn <jrh3@att.com>
gson/src/main/java/org/onap/policy/common/gson/JacksonFieldAdapterFactory.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/FieldDeserializer.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/FieldSerializer.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/JacksonFieldAdapterFactoryTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/FieldDeserializerTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/FieldSerializerTest.java [new file with mode: 0644]