diff options
author | 2019-09-04 15:40:25 +0800 | |
---|---|---|
committer | 2019-09-04 15:47:38 +0800 | |
commit | 9c07c95e34bbc24022cb49efa584234f4067534a (patch) | |
tree | 696f131129b806fd288bb4ce94a883562f01a707 /csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java | |
parent | 26514e7bb8b174ba5bbbcf903b697160eb397e03 (diff) |
modify Sonar Issue
Issue-ID: VNFSDK-462
Signed-off-by: Hailong Zhang <zhanghailong22@huawei.com>
Change-Id: I010d99d82c1ac8919907cf70ea4f8893e0a4b06d
Diffstat (limited to 'csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java')
-rw-r--r-- | csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java b/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java index a852d78..20700ac 100644 --- a/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java +++ b/csarvalidation/src/main/java/org/onap/cvc/csar/VTPValidateCSAR.java @@ -291,7 +291,9 @@ public class VTPValidateCSAR extends OnapCommand { String[] enabledReqs = properties.getProperty(key, "").split(","); List<String> list = new ArrayList<>(); for(String req: enabledReqs) { - if (!req.isEmpty()) list.add(req); + if (!req.isEmpty()) { + list.add(req); + } } return list; } |