From f0adee171017ddb6907523dfeff51bdd24398e8d Mon Sep 17 00:00:00 2001 From: aishkashyap Date: Thu, 21 Dec 2017 17:45:47 +0530 Subject: 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 --- .../src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit 1.2.3-korg