Skip to content

Commit

Permalink
Merge pull request #1021 from weibocom/revert-1003-opt/getFactoryBean…
Browse files Browse the repository at this point in the history
…Type

Revert "RefererConfigBean getObjectType not return null value"
  • Loading branch information
rayzhang0603 authored Nov 22, 2022
2 parents 39ba7f2 + 7275cdd commit 81a94e1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81a94e1

Please sign in to comment.