Fix instanceof checks after introducing the TypeParameterDescriptor interface
This commit is contained in:
@@ -115,7 +115,7 @@ public final class JetDescriptorIconProvider {
|
||||
return ((VariableDescriptor) descriptor).isVar() ? JetIcons.FIELD_VAR : JetIcons.FIELD_VAL;
|
||||
}
|
||||
|
||||
if (descriptor instanceof TypeParameterDescriptorImpl) {
|
||||
if (descriptor instanceof TypeParameterDescriptor) {
|
||||
return PlatformIcons.CLASS_ICON;
|
||||
}
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ public class JetCompletionContributor extends CompletionContributor {
|
||||
DeclarationDescriptor descriptor = ((JetLookupObject)object).getDescriptor();
|
||||
return (descriptor instanceof ClassDescriptor) ||
|
||||
(descriptor instanceof NamespaceDescriptor) ||
|
||||
(descriptor instanceof TypeParameterDescriptorImpl);
|
||||
(descriptor instanceof TypeParameterDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user