Skip to content

Commit

Permalink
whitelist "attribute" type to be valid file references linemarker for…
Browse files Browse the repository at this point in the history
… support related controllers
  • Loading branch information
Haehnchen committed Dec 2, 2023
1 parent 457a4d8 commit 4e74d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ private void attachRouteImport(@NotNull PsiElement psiElement, @NotNull Collecti
return;
}

if (!"annotation".equals(((XmlTag) xmlTag).getAttributeValue("type"))) {
String type = ((XmlTag) xmlTag).getAttributeValue("type");
if (!"annotation".equals(type) && !"attribute".equals(type)) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ private void attachRoutingForResources(@NotNull Collection<? super LineMarkerInf
return;
}

if (!"annotation".equals(YamlHelper.getYamlKeyValueAsString((YAMLKeyValue) yamlKeyValue, "type"))) {
String type = YamlHelper.getYamlKeyValueAsString((YAMLKeyValue) yamlKeyValue, "type");
if (!"annotation".equals(type) && !"attribute".equals(type)) {
return;
}

Expand Down

0 comments on commit 4e74d5c

Please sign in to comment.