diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2022-10-14 09:30:31 +0000 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2022-10-14 09:30:31 +0000 |
commit | d629b626036a1ef1bc37e2b9aa5b5d2fcad1be66 (patch) | |
tree | bbb64ce713a6f3407d73ed256d48a5c83da1cdf3 /aai-rest | |
parent | 271e8f5f853c7ed8c277f5c12607a4633dd5b136 (diff) |
Remove the apache commons-lang dependency in aai-common
Issue-ID: AAI-3551
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: Ib68b6fb43044532abf39c1ac088ef969c5aa00c2
Diffstat (limited to 'aai-rest')
-rw-r--r-- | aai-rest/pom.xml | 4 | ||||
-rw-r--r-- | aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java | 20 |
2 files changed, 14 insertions, 10 deletions
diff --git a/aai-rest/pom.xml b/aai-rest/pom.xml index 04328bcf..74b5431e 100644 --- a/aai-rest/pom.xml +++ b/aai-rest/pom.xml @@ -45,6 +45,10 @@ <dependencies> <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-lang3</artifactId> + </dependency> + <dependency> <groupId>com.att.eelf</groupId> <artifactId>eelf-core</artifactId> </dependency> diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java b/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java index 29d9506f..47dd2f2d 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/PropertyPasswordConfiguration.java @@ -19,16 +19,6 @@ */ package org.onap.aai.restclient; -import org.apache.commons.io.IOUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.context.ApplicationContextInitializer; -import org.springframework.context.ConfigurableApplicationContext; -import org.springframework.core.env.ConfigurableEnvironment; -import org.springframework.core.env.EnumerablePropertySource; -import org.springframework.core.env.MapPropertySource; -import org.springframework.core.env.PropertySource; - import java.io.File; import java.io.FileInputStream; import java.io.IOException; @@ -39,6 +29,16 @@ import java.util.Properties; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.apache.commons.io.IOUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.context.ApplicationContextInitializer; +import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.env.ConfigurableEnvironment; +import org.springframework.core.env.EnumerablePropertySource; +import org.springframework.core.env.MapPropertySource; +import org.springframework.core.env.PropertySource; + public class PropertyPasswordConfiguration implements ApplicationContextInitializer<ConfigurableApplicationContext> { private static final Pattern decodePasswordPattern = Pattern.compile("password\\((.*?)\\)"); |