diff options
author | wasala <przemyslaw.wasala@nokia.com> | 2018-04-17 12:25:54 +0200 |
---|---|---|
committer | wasala <przemyslaw.wasala@nokia.com> | 2018-04-17 12:25:54 +0200 |
commit | b196f93758edabf10174da160e8b74e7eec8ef72 (patch) | |
tree | f1b7dba8b49d4ea15f07eeb577545ace76a4e7fb /prh-aai-client | |
parent | 58a67d37441b8af808b792418e07448e30556bbd (diff) |
Fixed the rest of the Security Issues
*Introduce Gson Against Jackson library
*Delete posix library with strong copyleft licenses
Change-Id: I37ec6a359912481d1546293a8a8aeeedd6c907e2
Issue-ID: DCAEGEN2-426
Signed-off-by: wasala <przemyslaw.wasala@nokia.com>
Diffstat (limited to 'prh-aai-client')
-rw-r--r-- | prh-aai-client/pom.xml | 8 | ||||
-rw-r--r-- | prh-aai-client/src/main/java/org/onap/dcaegen2/services/config/AAIHttpClientConfiguration.java | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/prh-aai-client/pom.xml b/prh-aai-client/pom.xml index 390e053e..49f0dcec 100644 --- a/prh-aai-client/pom.xml +++ b/prh-aai-client/pom.xml @@ -47,6 +47,10 @@ <artifactId>value</artifactId> </dependency> <dependency> + <groupId>org.immutables</groupId> + <artifactId>gson</artifactId> + </dependency> + <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> </dependency> @@ -66,10 +70,6 @@ <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> </dependency> - <dependency> - <groupId>com.fasterxml.jackson.datatype</groupId> - <artifactId>jackson-datatype-jdk8</artifactId> - </dependency> <!-- LOGGING DEPENDENCIES--> <dependency> diff --git a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/config/AAIHttpClientConfiguration.java b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/config/AAIHttpClientConfiguration.java index 4b17b4b6..f9cbeb19 100644 --- a/prh-aai-client/src/main/java/org/onap/dcaegen2/services/config/AAIHttpClientConfiguration.java +++ b/prh-aai-client/src/main/java/org/onap/dcaegen2/services/config/AAIHttpClientConfiguration.java @@ -20,16 +20,16 @@ package org.onap.dcaegen2.services.config; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import org.immutables.value.Value; import java.io.Serializable; +import org.immutables.gson.Gson; +import org.immutables.value.Value; import org.springframework.stereotype.Component; @Component @Value.Immutable(prehash = true) @Value.Style(builder = "new") -@JsonDeserialize(builder = ImmutableAAIHttpClientConfiguration.Builder.class) +@Gson.TypeAdapters public abstract class AAIHttpClientConfiguration implements Serializable { private static final long serialVersionUID = 1L; |