Undeprecate VariableDescriptorWithAccessors.isDelegated

Apparently there's quite a few valid usages of this method outside of
the compiler frontend, where manual suppression is annoying.
This commit is contained in:
Alexander Udalov
2020-07-06 21:17:55 +02:00
parent 50b2ea7053
commit 8c71d8f126
22 changed files with 36 additions and 45 deletions
@@ -108,10 +108,7 @@ public class LocalVariableDescriptor extends VariableDescriptorWithInitializerIm
return setter;
}
// This override is not deprecated because local variables can only come from sources,
// and we can be sure that they won't be recompiled independently
@Override
@SuppressWarnings("deprecation")
public boolean isDelegated() {
return isDelegated;
}
@@ -41,7 +41,6 @@ internal fun VariableDescriptor.variableKind(
return propertyKind(usageModule)
}
@Suppress("DEPRECATION")
if (this is LocalVariableDescriptor && this.isDelegated) {
// Local delegated property: normally unstable, but can be treated as stable in legacy mode
return if (languageVersionSettings.supportsFeature(LanguageFeature.ProhibitSmartcastsOnLocalDelegatedProperty))