diff options
author | Jim Hahn <jrh3@att.com> | 2021-05-07 15:35:55 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-05-07 15:42:10 -0400 |
commit | c7d24b07377cb00ce4c0c531c6d3dff25e04dc12 (patch) | |
tree | a1c32b52d2d92321745824e6d4fe29fb441a5835 /common-logging | |
parent | 1d0aaaa5b31719c1718700bb0d1a99c413fd513c (diff) |
Change java.util.regex to re2j
Sonar complains about java.util.regex. Thought I used re2j when
creating all of the patterns, but apparently not. Fixed that oversight.
Issue-ID: POLICY-3284
Change-Id: Idbec112ab0d4c3b477ce357f8a556d95e4dea083
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'common-logging')
-rw-r--r-- | common-logging/pom.xml | 4 | ||||
-rw-r--r-- | common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/common-logging/pom.xml b/common-logging/pom.xml index db520e3c..3c487806 100644 --- a/common-logging/pom.xml +++ b/common-logging/pom.xml @@ -38,6 +38,10 @@ <scope>provided</scope> </dependency> <dependency> + <groupId>com.google.re2j</groupId> + <artifactId>re2j</artifactId> + </dependency> + <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>compile</scope> diff --git a/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java b/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java index 86eb4dd3..1550cc9b 100644 --- a/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java +++ b/common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java @@ -20,7 +20,7 @@ package org.onap.policy.common.logging; -import java.util.regex.Pattern; +import com.google.re2j.Pattern; import javax.servlet.http.HttpServletRequest; public class OnapLoggingUtils { |