summaryrefslogtreecommitdiffstats
path: root/aai-resources/src/main
diff options
context:
space:
mode:
authoraishkashyap <as00476394@techmahindra.com>2017-12-21 17:45:47 +0530
committeraishkashyap <as00476394@techmahindra.com>2017-12-21 17:45:56 +0530
commitf0adee171017ddb6907523dfeff51bdd24398e8d (patch)
treea9f57a0815b060aba6f1993ba686e20348ebbe08 /aai-resources/src/main
parent3c7c42eced8d5d15c026a1fa7264683fb4b3a562 (diff)
Sonar Major:Use isEmpty() to check the collection
Use isEmpty() to check whether the collection is empty or not Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.aai.resources%3Aresources#statuses=OPEN|assigned=false|severities=MAJOR Location: src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java Line No:397 Change-Id: I4ffc7c8a0aa71101c1933bf792071934a8c91e2c Issue-ID: AAI-579 Signed-off-by: aishkashyap <as00476394@techmahindra.com>
Diffstat (limited to 'aai-resources/src/main')
-rw-r--r--aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
index 52fe859..3eb031f 100644
--- a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
+++ b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java
@@ -393,7 +393,7 @@ public class ModelVersionTransformer extends RESTAPI {
}
}
String queryParams = Joiner.on("&").join(parmList);
- if (map.keySet().size() > 0) {
+ if (map.keySet().isEmpty()) {
path += params + queryParams;
}