diff --git a/motan-springsupport/src/main/java/com/weibo/api/motan/config/springsupport/RefererConfigBean.java b/motan-springsupport/src/main/java/com/weibo/api/motan/config/springsupport/RefererConfigBean.java index faa11e25..c29b63a7 100644 --- a/motan-springsupport/src/main/java/com/weibo/api/motan/config/springsupport/RefererConfigBean.java +++ b/motan-springsupport/src/main/java/com/weibo/api/motan/config/springsupport/RefererConfigBean.java @@ -42,11 +42,7 @@ public T getObject() throws Exception { @Override public Class getObjectType() { - Class clz = getInterface(); - if (clz == null){ // if interfaceClass is not set - clz = this.getClass(); // avoid being initialized prematurely before placeholder is processed - } - return clz; + return getInterface(); } @Override