mirror of
https://github.com/corda/corda.git
synced 2025-04-09 04:15:35 +00:00
Fix kotlin 1.0.4 error on use of Class.cast()
This commit is contained in:
parent
aa3af60232
commit
5419e773dc
@ -111,10 +111,10 @@ class HibernateObserver(services: ServiceHubInternal) {
|
||||
return tx.connection
|
||||
}
|
||||
|
||||
override fun <T : Any?> unwrap(unwrapType: Class<T>?): T {
|
||||
if (unwrapType == NodeDatabaseConnectionProvider::class.java) {
|
||||
override fun <T : Any?> unwrap(unwrapType: Class<T>): T {
|
||||
try {
|
||||
return unwrapType.cast(this)
|
||||
} else {
|
||||
} catch(e: ClassCastException) {
|
||||
throw UnknownUnwrapTypeException(unwrapType)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user