From ffdeff1694e362befeebef4d462a45c1805a639d Mon Sep 17 00:00:00 2001 From: Jegadeesh Babu Date: Thu, 14 Feb 2019 19:53:57 +0530 Subject: Added fix for potential Multiplication overflow Sonar bug fix Issue-ID: APPC-1438 Change-Id: I5d68c3b9659d8e538bd4a7a6a23aa77c293510f6 Signed-off-by: Jegadeesh Babu --- .../main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'appc-config') diff --git a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java index 62e1cbc8f..14c8c4110 100644 --- a/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java +++ b/appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java @@ -4,7 +4,7 @@ * ================================================================================ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ============================================================================= - * Modifications Copyright (C) 2018 IBM. + * Modifications Copyright (C) 2018-2019 IBM. * ============================================================================= * Modifications Copyright (C) 2018 Ericsson * ============================================================================= @@ -212,10 +212,11 @@ public ConfigStatus configure(String key, Map parameters, SvcLog sshJcraftWrapper.put(is, fullPathFileName, host, loginId, password); try { DebugLog.printRTAriDebug(fnName, "Sleeping for 180 seconds...."); - Thread.sleep(1000 * 180); + Thread.sleep(1000l * 180); DebugLog.printRTAriDebug(fnName, "Woke up...."); } catch (java.lang.InterruptedException ee) { boolean ignore = true; + Thread.currentThread().interrupt(); } } else { r.code = HttpURLConnection.HTTP_INTERNAL_ERROR; -- cgit 1.2.3-korg