From 14ea89a3f2093236abb4dc1ff61122ad27c37ad6 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 (cherry picked from commit 6afc5be6afa49778588eff9cc8f92c4d3c24687b) --- .../java/org/onap/portalsdk/analytics/error/ValidationException.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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