Change contract of getDelegationCall to @NotNull

Its existence guaranteed by parser
This commit is contained in:
Denis Zharkov
2015-03-25 11:31:58 +03:00
parent 8c048c3e43
commit 18e40d034e
6 changed files with 11 additions and 12 deletions
@@ -157,9 +157,9 @@ private fun processClassDelegationCallsToSpecifiedConstructor(
klass: JetClass, constructor: DeclarationDescriptor, process: (JetConstructorDelegationCall) -> Unit
) {
for (secondaryConstructor in klass.getSecondaryConstructors()) {
val delegationCallDescriptor = secondaryConstructor.getDelegationCall()?.getConstructorCallDescriptor()
val delegationCallDescriptor = secondaryConstructor.getDelegationCall().getConstructorCallDescriptor()
if (constructor == delegationCallDescriptor) {
process(secondaryConstructor.getDelegationCall()!!)
process(secondaryConstructor.getDelegationCall())
}
}
}