GH-1465: take event listener types defined via annotation attribute into account when looking for references

Fixes GH-1465
This commit is contained in:
Martin Lippert
2025-02-04 17:39:26 +01:00
parent 0b6b6dff9c
commit b537496bd0
3 changed files with 57 additions and 41 deletions

View File

@@ -169,11 +169,9 @@ public class EventsReferencesProviderTest {
assertTrue(references.contains(expectedLocation2));
String expectedDefinitionUri3 = directory.toPath().resolve("src/main/java/com/example/events/demo/EventListenerPerInterfaceAndBeanMethod.java").toUri().toString();
Location expectedLocation3 = new Location(expectedDefinitionUri3, new Range(new Position(9, 13), new Position(9, 24)));
Location expectedLocation3 = new Location(expectedDefinitionUri3, new Range(new Position(7, 13), new Position(7, 31)));
assertTrue(references.contains(expectedLocation3));
}
}