summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-rest/src/main
diff options
context:
space:
mode:
authorleventecsanyi <levente.csanyi@est.tech>2022-10-12 11:51:47 +0200
committerleventecsanyi <levente.csanyi@est.tech>2022-10-17 14:15:26 +0200
commit69563ed36cd4aa6876aee517c9c228d94e52ba91 (patch)
treee075f69e5c529448aea7209235c2e704a97804e5 /cps-ncmp-rest/src/main
parent63093a3a85d2444e54de5db17101810b2e66e21e (diff)
Fix SonarQube Violations
- Fixed SonarCube issue: added private constructor to TopicValidator and a unit test. Issue-ID: CPS-475 Change-Id: I4379522f023f32c8999a3ee595392bfbab147050 Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Diffstat (limited to 'cps-ncmp-rest/src/main')
-rw-r--r--cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/TopicValidator.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/TopicValidator.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/TopicValidator.java
index 313e7bc012..6a46fbd638 100644
--- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/TopicValidator.java
+++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/util/TopicValidator.java
@@ -21,8 +21,11 @@
package org.onap.cps.ncmp.rest.util;
import java.util.regex.Pattern;
+import lombok.AccessLevel;
+import lombok.NoArgsConstructor;
import org.onap.cps.ncmp.rest.exceptions.InvalidTopicException;
+@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class TopicValidator {
private static final Pattern TOPIC_NAME_PATTERN = Pattern.compile("^[a-zA-Z0-9]([._-](?![._-])|"