Skip to content

Commit 3b000cc

Browse files
committed
Replace getDefaultDriverClass with getDefaultDriver, format code.
1 parent c420c85 commit 3b000cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/apache/ibatis/builder/annotation/ProviderSqlSource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ public ProviderSqlSource(Configuration configuration, Object provider, Class<?>
5959
try {
6060
this.configuration = configuration;
6161
Lang lang = mapperMethod.getAnnotation(Lang.class);
62-
this.languageDriver = configuration.getLanguageRegistry().getDriver(lang == null ? configuration.getLanguageRegistry().getDefaultDriverClass() : lang.value());
62+
this.languageDriver = lang == null ?
63+
configuration.getLanguageRegistry().getDefaultDriver() :
64+
configuration.getLanguageRegistry().getDriver(lang.value());
6365
this.providerType = (Class<?>) provider.getClass().getMethod("type").invoke(provider);
6466
providerMethodName = (String) provider.getClass().getMethod("method").invoke(provider);
6567

0 commit comments

Comments
 (0)