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 <ricardo@richiware.dev>

* Refs #20070. Update submodule

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>

---------

Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Mar 13, 2024
1 parent d49cc0b commit f4d8ccd
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 f4d8ccd

Please sign in to comment.