Suppress CAST_NEVER_SUCCEEDS removed from source code

(cherry picked from commit d448a92)
This commit is contained in:
Mikhail Glukhikh
2016-07-22 10:41:28 +03:00
committed by Mikhail Glukhikh
parent a902c4901a
commit b88282c0fc
2 changed files with 2 additions and 2 deletions
@@ -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>
@@ -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 {