From 4d759ef950a2be9dbbfc05850eec6b3feb295865 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Wed, 11 Sep 2019 14:50:00 +0530 Subject: Sonar Fix: APPC-1716 Fixed sonar issues across this file Issue-ID: APPC-1716 Change-Id: Ic9d8d1c0ff22c9d0cc9831793d1e3550e5f62897 Signed-off-by: Arundathi Patil --- .../iaas/provider/operation/common/constants/Constants.java | 8 +++++--- .../iaas/provider/operation/common/constants/Property.java | 7 +++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Constants.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Constants.java index 06065afda..e44bf76cf 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Constants.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Constants.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modification Copyright (C) 2019 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,9 +30,6 @@ package org.onap.appc.adapter.iaas.provider.operation.common.constants; */ public class Constants { - private Constants() { - } - public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; public static final String MDC_SERVICE = "service"; @@ -60,4 +59,7 @@ public class Constants { * The constant for a space */ public static final char SPACE = ' '; + + private Constants() { + } } diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Property.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Property.java index d60906b84..161b4030e 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Property.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/common/constants/Property.java @@ -5,6 +5,8 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs + * ================================================================================ + * Modification Copyright (C) 2019 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,8 +30,6 @@ package org.onap.appc.adapter.iaas.provider.operation.common.constants; */ public class Property { - private Property() { - } public static final String PROVIDER = "provider"; public static final String PROVIDER_IDENTITY = "identity"; public static final String PROVIDER_TENANT = "tenant"; @@ -41,4 +41,7 @@ public class Property { public static final String SKIP_HYPERVISOR_CHECK = "org.onap.appc.iaas.skiphypervisorcheck"; public static final String PAYLOAD = "org.onap.appc.payload"; + private Property() { + } + } -- cgit 1.2.3-korg