From 6afc5be6afa49778588eff9cc8f92c4d3c24687b Mon Sep 17 00:00:00 2001 From: burdziak Date: Wed, 7 Aug 2019 13:44:02 +0200 Subject: Fix sonar issues in ValidationException Change-Id: I1dc2028f22857f7e96918f4a609f0c9ba10934fc Issue-ID: PORTAL-523 Signed-off-by: burdziak --- .../java/org/onap/portalsdk/analytics/error/ValidationException.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ecomp-sdk') diff --git a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/error/ValidationException.java b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/error/ValidationException.java index a435bdf8..9eeca6ab 100644 --- a/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/error/ValidationException.java +++ b/ecomp-sdk/epsdk-analytics/src/main/java/org/onap/portalsdk/analytics/error/ValidationException.java @@ -38,14 +38,16 @@ package org.onap.portalsdk.analytics.error; public class ValidationException extends RaptorRuntimeException { - private String fieldID = null; + private final String fieldID; public ValidationException(String message) { super(message); + fieldID = null; } public ValidationException(String message, Throwable ex) { super(message, ex); + fieldID = null; } public ValidationException(String fieldID, String message) { -- cgit 1.2.3-korg