Suppress CAST_NEVER_SUCCEEDS removed from source code
(cherry picked from commit d448a92)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a902c4901a
commit
b88282c0fc
+1
-1
@@ -276,7 +276,7 @@ class OverloadingConflictResolver(
|
||||
private val MutableResolvedCall<*>.resultingVariableDescriptor: VariableDescriptor
|
||||
get() = (this as VariableAsFunctionResolvedCall).variableCall.resultingDescriptor
|
||||
|
||||
@Suppress("UNCHECKED_CAST", "CAST_NEVER_SUCCEEDS")
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
private fun <C> getCallHashingStrategy() =
|
||||
ResolvedCallHashingStrategy as TObjectHashingStrategy<C>
|
||||
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ class KotlinIntroduceParameterMethodUsageProcessor : IntroduceParameterMethodUsa
|
||||
val refElement = usage.element as? KtReferenceExpression ?: return true
|
||||
val callElement = refElement.getParentOfTypeAndBranch<KtCallElement>(true) { calleeExpression } ?: return true
|
||||
val delegateUsage = if (callElement is KtConstructorDelegationCall) {
|
||||
@Suppress("CAST_NEVER_SUCCEEDS")
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
(KotlinConstructorDelegationCallUsage(callElement, changeInfo) as KotlinUsageInfo<KtCallElement>)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user