summaryrefslogtreecommitdiffstats
path: root/common-logging
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-05-07 15:35:55 -0400
committerJim Hahn <jrh3@att.com>2021-05-07 15:42:10 -0400
commitc7d24b07377cb00ce4c0c531c6d3dff25e04dc12 (patch)
treea1c32b52d2d92321745824e6d4fe29fb441a5835 /common-logging
parent1d0aaaa5b31719c1718700bb0d1a99c413fd513c (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.xml4
-rw-r--r--common-logging/src/main/java/org/onap/policy/common/logging/OnapLoggingUtils.java2
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 {