From 39c22dfbd4c4f9e0ae0f1fd210df45f5cc28f879 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Wed, 19 May 2021 15:09:29 +0200 Subject: [PATCH] Refs 11563. Use member.annotationKey instead of annotations map. Signed-off-by: Miguel Company --- src/main/java/com/eprosima/fastdds/idl/templates/Common.stg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eprosima/fastdds/idl/templates/Common.stg b/src/main/java/com/eprosima/fastdds/idl/templates/Common.stg index 09aa25a0..1ca7b797 100644 --- a/src/main/java/com/eprosima/fastdds/idl/templates/Common.stg +++ b/src/main/java/com/eprosima/fastdds/idl/templates/Common.stg @@ -102,7 +102,7 @@ size_t $struct.scopedname$::getKeyMaxCdrSerializedSize( $if(struct.inheritances)$ $struct.inheritances : {current_align += $it.scopedname$::getKeyMaxCdrSerializedSize(current_align);}; separator="\n"$ $endif$ - $struct.members : { member | $if(boolean_converter.(member.annotations.("Key").values.("value").value))$ $max_serialized_size(ctx=ctx, typecode=member.typecode, var="current_align")$ $endif$}; separator="\n"$ + $struct.members : { member | $if(member.annotationKey)$ $max_serialized_size(ctx=ctx, typecode=member.typecode, var="current_align")$ $endif$}; separator="\n"$ return current_align; } @@ -117,7 +117,7 @@ void $struct.scopedname$::serializeKey( { (void) scdr; $if(struct.inheritances)$ $struct.inheritances : {$it.scopedname$::serializeKey(scdr);}; separator="\n"$ $endif$ - $struct.members : { member |$if(boolean_converter.(member.annotations.("Key").values.("value").value))$ $object_serialization(ctx=ctx, object=member, preffix="m_")$ $endif$ }; separator=""$ + $struct.members : { member |$if(member.annotationKey)$ $object_serialization(ctx=ctx, object=member, preffix="m_")$ $endif$ }; separator=""$ } >>