This is an automated email from the ASF dual-hosted git repository.

kylixs pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new b2fc28a  resolve idea warning no beans of type found (#8396)
b2fc28a is described below

commit b2fc28a67a12d3beea70e5d5c4f8b1b9d54350c3
Author: Wu Zhiguo <[email protected]>
AuthorDate: Tue Aug 3 12:01:25 2021 +0800

    resolve idea warning no beans of type found (#8396)
---
 .../src/main/java/org/apache/dubbo/config/spring/ReferenceBean.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ReferenceBean.java
 
b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ReferenceBean.java
index 5bb21a2..d07128e 100644
--- 
a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ReferenceBean.java
+++ 
b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/ReferenceBean.java
@@ -94,7 +94,7 @@ import java.util.Map;
  * @see org.apache.dubbo.config.annotation.DubboReference
  * @see org.apache.dubbo.config.spring.reference.ReferenceBeanBuilder
  */
-public class ReferenceBean<T> implements FactoryBean,
+public class ReferenceBean<T> implements FactoryBean<T>,
         ApplicationContextAware, BeanClassLoaderAware, BeanNameAware, 
InitializingBean, DisposableBean {
 
     private transient ApplicationContext applicationContext;
@@ -181,11 +181,11 @@ public class ReferenceBean<T> implements FactoryBean,
      * @see org.apache.dubbo.config.bootstrap.DubboBootstrap
      */
     @Override
-    public Object getObject() {
+    public T getObject() {
         if (lazyProxy == null) {
             createLazyProxy();
         }
-        return lazyProxy;
+        return (T) lazyProxy;
     }
 
     @Override

Reply via email to