summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPriyank Maheshwari <priyank.maheshwari@est.tech>2023-04-13 08:43:35 +0000
committerGerrit Code Review <gerrit@onap.org>2023-04-13 08:43:35 +0000
commit29bd67355d8faa084b48b19def96e9c06b85868e (patch)
tree8537b0216c19d46b49ebaebf9ea23d0c3e06976a
parent4760869cc48115b79830dee10c20d4466110d716 (diff)
parent8e88533dee56894320d7a2644060d9fe85a2438b (diff)
Merge "Remove "isTagged" mapping method"
-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;
- }
}