Skip to content

Commit 8c66e0b

Browse files
committed
nit
1 parent 2063c43 commit 8c66e0b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

kyuubi-common/src/main/scala/org/apache/kyuubi/service/authentication/JdbcAuthenticationProviderImpl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class JdbcAuthenticationProviderImpl(conf: KyuubiConf) extends PasswdAuthenticat
4949

5050
checkJdbcConfigs()
5151

52-
implicit private[kyuubi] val ds: DataSource = {
52+
implicit private[kyuubi] val ds: DataSource with AutoCloseable = {
5353
val datasourceProperties = new Properties()
5454
val hikariConfig = new HikariConfig(datasourceProperties)
5555
hikariConfig.setDriverClassName(driverClass.orNull)

kyuubi-common/src/test/scala/org/apache/kyuubi/service/authentication/JdbcAuthenticationProviderImplSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
package org.apache.kyuubi.service.authentication
1919

20-
import java.io.Closeable
2120
import java.sql.DriverManager
2221
import java.util.Properties
2322
import javax.security.sasl.AuthenticationException
@@ -36,7 +35,7 @@ class JdbcAuthenticationProviderImplSuite extends KyuubiFunSuite {
3635
protected val authDbName: String = "auth_db"
3736
protected val jdbcUrl: String = s"jdbc:derby:memory:$authDbName;create=true"
3837

39-
implicit private val ds: DataSource with Closeable = {
38+
implicit private val ds: DataSource with AutoCloseable = {
4039
val datasourceProperties = new Properties()
4140
val hikariConfig = new HikariConfig(datasourceProperties)
4241
hikariConfig.setDriverClassName("org.apache.derby.jdbc.AutoloadedDriver")

0 commit comments

Comments
 (0)