Fix compiler warnings in compiler code
This commit is contained in:
@@ -79,6 +79,7 @@ internal class ComponentRegistry {
|
||||
By mimicking the usual descriptors we get lazy evaluation and consistency checks for free.
|
||||
*/
|
||||
for (resolver in clashResolvers) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val clashedComponents = registrationMap[resolver.applicableTo] as? Collection<ComponentDescriptor> ?: continue
|
||||
if (clashedComponents.size <= 1) continue
|
||||
|
||||
@@ -86,4 +87,4 @@ internal class ComponentRegistry {
|
||||
registrationMap[resolver.applicableTo] = substituteDescriptor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +153,7 @@ internal class ClashResolutionDescriptor<E : PlatformSpecificExtension<E>>(
|
||||
|
||||
override fun createInstance(context: ValueResolveContext): Any {
|
||||
state = ComponentState.Initializing
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
val extensions = computeArguments(clashedComponents) as List<E>
|
||||
val resolution = resolver.resolveExtensionsClash(extensions)
|
||||
state = ComponentState.Initialized
|
||||
|
||||
Reference in New Issue
Block a user