Skip to content

Commit

Permalink
Refs 11563. Use member.annotationKey instead of annotations map. (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany authored Jun 9, 2021
1 parent d751dc1 commit a6d5fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/eprosima/fastdds/idl/templates/Common.stg
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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=""$
}

>>
Expand Down

0 comments on commit a6d5fb1

Please sign in to comment.