diff options
author | 2024-12-11 09:21:34 +0100 | |
---|---|---|
committer | 2024-12-11 08:27:21 +0000 | |
commit | 5c2e24008d5b093f86aa5dce8db1336d9211d1d2 (patch) | |
tree | 9e60f3f5ec3b76a442206b9b9752e6ec5a616a3e /aai-rest | |
parent | 498b357833a128211aac0bf6c4325f0b100b72b6 (diff) |
Reduce org.json usage in aai-common
- org.json [is slow](https://github.com/fabienrenaud/java-json-benchmark?tab=readme-ov-file#users-model)
- Jackson should be consistently used everywhere
- only XmlFormatTransformer is left, but that warrants a dedicated change with
(likely) further tests since it appears to be quite a critical execution path
- remove unused imports
- update org.json to a non-vulnerable version
Issue-ID: AAI-4085
Change-Id: I84610523447d70a1729348392ffd302d17e9379d
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-rest')
-rw-r--r-- | aai-rest/src/main/java/org/onap/aai/restclient/AAIRestClient.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/AAIRestClient.java b/aai-rest/src/main/java/org/onap/aai/restclient/AAIRestClient.java index 393c6632..3e4eceb4 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/AAIRestClient.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/AAIRestClient.java @@ -27,8 +27,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; -import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; -import org.springframework.context.annotation.Conditional; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; import org.springframework.stereotype.Component; |