BurningCN commented on code in PR #10308:
URL: https://github.com/apache/dubbo/pull/10308#discussion_r918726575


##########
dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/AbstractAnnotationBeanPostProcessor.java:
##########
@@ -200,37 +162,34 @@ public void doWith(Field field) throws 
IllegalArgumentException, IllegalAccessEx
      */
     private List<AbstractAnnotationBeanPostProcessor.AnnotatedMethodElement> 
findAnnotatedMethodMetadata(final Class<?> beanClass) {
 
-        final List<AbstractAnnotationBeanPostProcessor.AnnotatedMethodElement> 
elements = new 
LinkedList<AbstractAnnotationBeanPostProcessor.AnnotatedMethodElement>();
+        final List<AbstractAnnotationBeanPostProcessor.AnnotatedMethodElement> 
elements = new LinkedList<>();
 
-        ReflectionUtils.doWithMethods(beanClass, new 
ReflectionUtils.MethodCallback() {
-            @Override
-            public void doWith(Method method) throws IllegalArgumentException, 
IllegalAccessException {
+        ReflectionUtils.doWithMethods(beanClass, method -> {

Review Comment:
   替换为lambda



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to