Skip to content

Commit 33af365

Browse files
committed
Used fully qualified name for annotation
1 parent d84d7a4 commit 33af365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/axonframework/intellij/ide/plugin/handler/DefaultEventHandlerProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public EventHandler resolve(PsiElement element) {
5252
}
5353

5454
private EventHandler createHandlerBasedOnAnnotation(PsiMethod method, PsiAnnotation annotation) {
55-
if (annotation.getText().equals(AnnotationTypes.COMMAND_EVENT_HANDLER.getAnnotation())) {
55+
if (AnnotationTypes.COMMAND_EVENT_HANDLER.getFullyQualifiedName().equals(annotation.getQualifiedName())) {
5656
return CommandEventHandler.createEventHandler(method);
5757
} else {
5858
return DefaultEventHandler.createEventHandler(method, annotation);

0 commit comments

Comments
 (0)