CCSDK-1536 -return this expression instead of assigning it to the temporary variable 49/92049/2
authorThugutla Sailakshmi <tsaila10@in.ibm.com>
Thu, 25 Jul 2019 19:23:07 +0000 (00:53 +0530)
committerDan Timoney <dtimoney@att.com>
Fri, 26 Jul 2019 17:37:11 +0000 (17:37 +0000)
return this expression instead of assigning it to the temporary variable

Issue-ID: CCSDK-1536
Change-Id: Ib0e7970585978e84189b5c71f2fd9c6c6c74eab8
Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
ccsdk-app-common/src/main/java/org/onap/ccsdk/dashboard/util/DashboardProperties.java

index d167f9c..35d5d01 100644 (file)
@@ -3,6 +3,8 @@
  *
  * =================================================================================
  *  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+ *  
+ *  Modifications 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.
@@ -178,8 +180,8 @@ public class DashboardProperties {
         String listVal = getProperty(key);
         if (listVal == null)
             return null;
-        String[] vals = listVal.split("\\s*,\\s*");
-        return vals;
+        
+        return listVal.split("\\s*,\\s*");
     }
 
     /**