[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:
Alexander.Likhachev
2024-01-30 10:42:47 +01:00
committed by Space Team
parent 64ad40e863
commit 8fe65d2fee
@@ -30,6 +30,7 @@ class ClassLoadersCache(
.maximumSize(size.toLong())
.expireAfterAccess(ttl)
.removalListener<CacheKey, URLClassLoader> { (key, cl) ->
check(key != null && cl != null)
logger.info("Removing classloader from cache: ${key.entries.map { it.path }}")
cl.close()
}