Added fix for potential Multiplication overflow 99/78499/3
authorJegadeesh Babu <jegabab1@in.ibm.com>
Thu, 14 Feb 2019 14:23:57 +0000 (19:53 +0530)
committerTakamune Cho <takamune.cho@att.com>
Fri, 15 Feb 2019 16:36:43 +0000 (16:36 +0000)
Sonar bug fix

Issue-ID: APPC-1438
Change-Id: I5d68c3b9659d8e538bd4a7a6a23aa77c293510f6
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-config/appc-config-adaptor/provider/src/main/java/org/onap/appc/ccadaptor/ConfigComponentAdaptor.java

index 62e1cbc..14c8c41 100644 (file)
@@ -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;