[Gradle] Fix warnings in ClassLoadersCache
This check is required due to the way of generic type declaration in the Guava code ^KT-56904 In Progress
This commit is contained in:
committed by
Space Team
parent
64ad40e863
commit
8fe65d2fee
+1
@@ -30,6 +30,7 @@ class ClassLoadersCache(
|
|||||||
.maximumSize(size.toLong())
|
.maximumSize(size.toLong())
|
||||||
.expireAfterAccess(ttl)
|
.expireAfterAccess(ttl)
|
||||||
.removalListener<CacheKey, URLClassLoader> { (key, cl) ->
|
.removalListener<CacheKey, URLClassLoader> { (key, cl) ->
|
||||||
|
check(key != null && cl != null)
|
||||||
logger.info("Removing classloader from cache: ${key.entries.map { it.path }}")
|
logger.info("Removing classloader from cache: ${key.entries.map { it.path }}")
|
||||||
cl.close()
|
cl.close()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user