From ad2de270ad8c80f075ea8c5d146f7720a36205a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Mon, 4 Dec 2023 09:04:06 +0100 Subject: [PATCH] Fix using final string for new annotations (#273) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refs #20070. Update submodule Signed-off-by: Ricardo González Moreno * Refs #20070. Update submodule Signed-off-by: Ricardo González Moreno --------- Signed-off-by: Ricardo González Moreno --- src/main/java/com/eprosima/fastdds/idl/grammar/Context.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/eprosima/fastdds/idl/grammar/Context.java b/src/main/java/com/eprosima/fastdds/idl/grammar/Context.java index bfa2a3af..347508e8 100644 --- a/src/main/java/com/eprosima/fastdds/idl/grammar/Context.java +++ b/src/main/java/com/eprosima/fastdds/idl/grammar/Context.java @@ -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; }