Add jackson behavior for methods 20/78320/3
authorJim Hahn <jrh3@att.com>
Tue, 12 Feb 2019 18:17:09 +0000 (13:17 -0500)
committerJim Hahn <jrh3@att.com>
Tue, 12 Feb 2019 18:45:41 +0000 (13:45 -0500)
commit3cc17f964e46578f8ff6275072d1c77dafa551dd
tree6d6184907913d03686fecf4c41b93e49b0a6b2b6
parent13ca63c40a379f95539cb4882ec2b645cd0c2a48
Add jackson behavior for methods

Added classes to make gson treat methods as jackson does.
Remove unneeded "forGetter" parameter from constructors.
Fixed sonar issue with too long "if" test.
Corrected comment about annotation names.
Adjusted error message.
Removed unused constant.
Removed trailing spaces.

Change-Id: I3a4fc92193737a0dc89f1218e70f093aedbdb152
Issue-ID: POLICY-1428
Signed-off-by: Jim Hahn <jrh3@att.com>
16 files changed:
gson/src/main/java/org/onap/policy/common/gson/JacksonMethodAdapterFactory.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/Adapter.java
gson/src/main/java/org/onap/policy/common/gson/internal/AnyGetterSerializer.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/AnySetterDeserializer.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/Lifter.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/MethodAdapter.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/MethodDeserializer.java [new file with mode: 0644]
gson/src/main/java/org/onap/policy/common/gson/internal/MethodSerializer.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/JacksonMethodAdapterFactoryTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/AdapterTest.java
gson/src/test/java/org/onap/policy/common/gson/internal/AnyGetterSerializerTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/AnySetterDeserializerTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/LifterTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/MethodAdapterTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/MethodDeserializerTest.java [new file with mode: 0644]
gson/src/test/java/org/onap/policy/common/gson/internal/MethodSerializerTest.java [new file with mode: 0644]