Methods in KotlinBuiltIns made static where already possible
This commit is contained in:
+2
-3
@@ -103,15 +103,14 @@ public class FunctionsHighlightingVisitor extends AfterAnalysisHighlightingVisit
|
||||
return false;
|
||||
}
|
||||
|
||||
KotlinBuiltIns builtIns = KotlinBuiltIns.getInstance();
|
||||
JetType defaultType = ((ClassDescriptor) parent).getDefaultType();
|
||||
|
||||
if (builtIns.isFunctionOrExtensionFunctionType(defaultType)) {
|
||||
if (KotlinBuiltIns.isFunctionOrExtensionFunctionType(defaultType)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (JetType supertype : TypeUtils.getAllSupertypes(defaultType)) {
|
||||
if (builtIns.isFunctionOrExtensionFunctionType(supertype)) {
|
||||
if (KotlinBuiltIns.isFunctionOrExtensionFunctionType(supertype)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -135,7 +135,7 @@ public class KotlinSuppressIntentionAction(
|
||||
val context = annotated.analyze()
|
||||
for (entry in annotated.getAnnotationEntries()) {
|
||||
val annotationDescriptor = context.get(BindingContext.ANNOTATION, entry)
|
||||
if (annotationDescriptor != null && KotlinBuiltIns.getInstance().isSuppressAnnotation(annotationDescriptor)) {
|
||||
if (annotationDescriptor != null && KotlinBuiltIns.isSuppressAnnotation(annotationDescriptor)) {
|
||||
return entry
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user