Add extra checks
#EA-721785
This commit is contained in:
committed by
Space Team
parent
e4a361a4b4
commit
e751b11b5e
@@ -153,6 +153,11 @@ class ModuleDescriptorImpl @JvmOverloads constructor(
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
override fun <T> getCapability(capability: ModuleCapability<T>) = capabilities[capability] as? T
|
||||
|
||||
override fun toString(): String {
|
||||
val toString = super.toString()
|
||||
return if (isValid) toString else "$toString !isValid"
|
||||
}
|
||||
}
|
||||
|
||||
interface ModuleDependencies {
|
||||
|
||||
Reference in New Issue
Block a user