dragon-zhang commented on code in PR #3889:
URL: https://github.com/apache/shenyu/pull/3889#discussion_r958141857


##########
shenyu-client/shenyu-client-motan/src/main/java/org/apache/shenyu/client/motan/MotanServiceEventListener.java:
##########
@@ -110,7 +110,7 @@ private void handler(final Object bean) {
             clazz = AopUtils.getTargetClass(bean);
         }
         String superPath = buildApiSuperPath(clazz);
-        MotanService service = clazz.getAnnotation(MotanService.class);
+        ShenyuMotanService service = 
clazz.getAnnotation(ShenyuMotanService.class);

Review Comment:
   learn and use 
`org.springframework.core.annotation.AnnotatedElementUtils#findMergedAnnotation`
 to replace `java.lang.Class#getAnnotation`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to