From a3bd207da8e2338234a68bfb27e78b0748af7231 Mon Sep 17 00:00:00 2001 From: Indrijeet kumar Date: Mon, 15 Jun 2020 09:12:11 +0530 Subject: Added a private constructor in EcompExternalAuthUt Added a private constructor in EcompExternalAuthutils.java Issue-ID: PORTAL-813 Change-Id: I8651fc68518916dbdc3c3ec02da4c6f9d59ad8b6 Signed-off-by: Indrijeet Kumar --- .../portalsdk/external/authorization/util/EcompExternalAuthUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ecomp-sdk/epsdk-aaf/src/main/java/org/onap/portalsdk/external/authorization/util/EcompExternalAuthUtils.java b/ecomp-sdk/epsdk-aaf/src/main/java/org/onap/portalsdk/external/authorization/util/EcompExternalAuthUtils.java index 8a2c1206..b3bd6c14 100644 --- a/ecomp-sdk/epsdk-aaf/src/main/java/org/onap/portalsdk/external/authorization/util/EcompExternalAuthUtils.java +++ b/ecomp-sdk/epsdk-aaf/src/main/java/org/onap/portalsdk/external/authorization/util/EcompExternalAuthUtils.java @@ -50,6 +50,10 @@ import org.springframework.http.MediaType; import com.fasterxml.jackson.databind.ObjectMapper; public class EcompExternalAuthUtils { + //Added a private constructor to hide the implicit public one. + private EcompExternalAuthUtils() { + throw new IllegalStateException("Utility class"); + } private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(EcompExternalAuthUtils.class); -- cgit 1.2.3-korg