Skip to content

Commit

Permalink
Refs #21577. Use @Final for ROS2 types by default
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Sep 9, 2024
1 parent 8cba9fc commit 89f12d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/eprosima/fastdds/fastddsgen.java
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ else if (arg.equals(execute_test_arg))
else if (arg.equals(ros2_names_arg))
{
m_type_ros2 = true;
TypeCode.default_extensibility = TypeCode.ExtensibilityKind.FINAL;
}
else if (arg.equals(cnames_arg))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -916,17 +916,7 @@ if (eprosima::fastdds::dds::RETCODE_OK != return_code_$name$)
>>

extensibility(object) ::= <%
$if (object.annotationExtensibilityNotApplied)$
$if(object.isStructType)$
$if(object.inheritance)$
$extensibility(object.inheritance)$
$else$
eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE,
$endif$
$else$
eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE,
$endif$
$elseif (object.annotationAppendable)$
$if (object.annotationAppendable)$
eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE,
$elseif (object.annotationFinal)$
eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL,
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/idl-parser

0 comments on commit 89f12d3

Please sign in to comment.