From 8e88533dee56894320d7a2644060d9fe85a2438b Mon Sep 17 00:00:00 2001 From: lukegleeson Date: Wed, 12 Apr 2023 14:04:47 +0100 Subject: Remove "isTagged" mapping method Remove redundant mapping method causing sonarqube violation Issue-ID: CPS-1394 Signed-off-by: lukegleeson Change-Id: Ie3ed1411c05fcc3671e547b80b41826dcd6e1fab --- .../onap/cps/ncmp/api/impl/event/avc/SubscriptionEventMapper.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cps-ncmp-service/src') 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; - } } -- cgit 1.2.3-korg