summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlukegleeson <luke.gleeson@est.tech>2023-04-12 14:04:47 +0100
committerlukegleeson <luke.gleeson@est.tech>2023-04-12 14:06:27 +0100
commit8e88533dee56894320d7a2644060d9fe85a2438b (patch)
treed36f3db2122c897ddab683050a715cf1da0c045f
parentfabc72d633468d2f94346896bc8b09687248731e (diff)
Remove "isTagged" mapping method
Remove redundant mapping method causing sonarqube violation Issue-ID: CPS-1394 Signed-off-by: lukegleeson <luke.gleeson@est.tech> Change-Id: Ie3ed1411c05fcc3671e547b80b41826dcd6e1fab
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java
index 44f9abb08e..e18448d1f9 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java
@@ -33,7 +33,7 @@ public interface SubscriptionEventMapper {
@Mapping(source = "event.subscription.clientID", target = "clientId")
@Mapping(source = "event.subscription.name", target = "subscriptionName")
- @Mapping(source = "event.subscription.isTagged", target = "tagged", qualifiedByName = "mapIsTagged")
+ @Mapping(source = "event.subscription.isTagged", target = "tagged")
@Mapping(source = "event.predicates.targets",
target = "predicates.targetCmHandles", qualifiedByName = "mapTargetsToCmHandleTargets")
@Mapping(source = "event.predicates.datastore", target = "predicates.datastore")
@@ -44,9 +44,4 @@ public interface SubscriptionEventMapper {
return targets.stream().map(
target -> new YangModelSubscriptionEvent.TargetCmHandle(target.toString())).collect(Collectors.toList());
}
-
- @Named("mapIsTagged")
- default boolean mapIsTagged(Boolean isTagged) {
- return (isTagged == null) ? false : isTagged;
- }
}