diff options
author | Jegadeesh Babu <jegabab1@in.ibm.com> | 2019-02-14 19:53:57 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-15 16:36:43 +0000 |
commit | ffdeff1694e362befeebef4d462a45c1805a639d (patch) | |
tree | 9b8083a500e259e1100725cde2c9f0e763cf2f39 /appc-config | |
parent | a975d98953532bcfc5c2d98b3c87f1a6e03d768e (diff) |
Added fix for potential Multiplication overflow
Sonar bug fix
Issue-ID: APPC-1438
Change-Id: I5d68c3b9659d8e538bd4a7a6a23aa77c293510f6
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-config')
-rw-r--r-- | appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java | 5 |
1 files changed, 3 insertions, 2 deletions
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<String, String> 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; |