Skip to content

Commit 92cef48

Browse files
committed
Prevent wasteful processing on BaseBuilder
Fixes mybatisgh-1786
1 parent 150304d commit 92cef48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/ibatis/builder/BaseBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected Object createInstance(String alias) {
102102
return null;
103103
}
104104
try {
105-
return resolveClass(alias).getDeclaredConstructor().newInstance();
105+
return clazz.getDeclaredConstructor().newInstance();
106106
} catch (Exception e) {
107107
throw new BuilderException("Error creating instance. Cause: " + e, e);
108108
}

0 commit comments

Comments
 (0)