Skip to content

Commit

Permalink
resolve idea warning no beans of type found (#8396)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wu Zhiguo authored Aug 3, 2021
1 parent 94110c0 commit b2fc28a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
* @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;
Expand Down Expand Up @@ -181,11 +181,11 @@ public void setBeanName(String name) {
* @see org.apache.dubbo.config.bootstrap.DubboBootstrap
*/
@Override
public Object getObject() {
public T getObject() {
if (lazyProxy == null) {
createLazyProxy();
}
return lazyProxy;
return (T) lazyProxy;
}

@Override
Expand Down

0 comments on commit b2fc28a

Please sign in to comment.