Skip to content

Commit

Permalink
Fix using final string for new annotations (#273)
Browse files Browse the repository at this point in the history
* Refs #20070. Update submodule

Signed-off-by: Ricardo González Moreno <[email protected]>

* Refs #20070. Update submodule

Signed-off-by: Ricardo González Moreno <[email protected]>

---------

Signed-off-by: Ricardo González Moreno <[email protected]>
  • Loading branch information
richiware authored and adriancampo committed Dec 12, 2023
1 parent 37d1c00 commit ad2de27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/eprosima/fastdds/idl/grammar/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,11 @@ public AnnotationDeclaration getAnnotationDeclaration(
{
if (isInScopedFile())
{
if (name.equals("optional"))
if (name.equals(Annotation.optional_str))
{
there_is_at_least_one_optional_annotation = true;
}
else if (name.equals("external"))
else if (name.equals(Annotation.external_str))
{
there_is_at_least_one_external_annotation = true;
}
Expand Down

0 comments on commit ad2de27

Please sign in to comment.