Sonar Major fix 11/30211/1
authorPooja03 <PM00501616@techmahindra.com>
Mon, 5 Feb 2018 06:27:48 +0000 (11:57 +0530)
committerPooja03 <PM00501616@techmahindra.com>
Mon, 5 Feb 2018 06:28:57 +0000 (11:58 +0530)
Remove useless parentheses in DcaeServicesApiServiceImpl.java

Sonar Link:https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|assignees=_me_%2CPooja03

Location:DcaeServicesApiServiceImpl.java:L214
Change-Id: I69cfc51a0e42516564c821ec5a0610c4cb3e7242
Issue-ID: DCAEGEN2-301
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index bc1888f..990083a 100644 (file)
@@ -211,7 +211,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService {
 
             if (shareable != null) {
                 // NOTE: That the shareable field in the database is actually an integer.
-                query.bind("shareable", (shareable ? 1 : 0));
+                query.bind("shareable", shareable ? 1 : 0);
             }
 
             query.bind("createdCutoff", createdCutoff);