From 9802b23b9000825c7d12dc62f1c80610d9cee879 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 19 Oct 2012 00:45:45 +0400 Subject: [PATCH] Private helpers made static --- .../org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java index c47f203b535..601c17d3b16 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/types/lang/KotlinBuiltIns.java @@ -202,7 +202,7 @@ public class KotlinBuiltIns { } @NotNull - private List loadResourcesAsJetFiles(@NotNull Project project, @NotNull List libraryFiles) + private static List loadResourcesAsJetFiles(@NotNull Project project, @NotNull List libraryFiles) throws IOException, ProcessCanceledException { List files = new LinkedList(); @@ -774,7 +774,7 @@ public class KotlinBuiltIns { return new JetTypeImpl(annotations, constructor, false, arguments, classDescriptor.getMemberScope(arguments)); } - private TypeProjection defaultProjection(JetType returnType) { + private static TypeProjection defaultProjection(JetType returnType) { return new TypeProjection(Variance.INVARIANT, returnType); } @@ -887,7 +887,7 @@ public class KotlinBuiltIns { return containsAnnotation(declarationDescriptor, getDeprecatedAnnotation()); } - private boolean containsAnnotation(DeclarationDescriptor descriptor, ClassDescriptor annotationClass) { + private static boolean containsAnnotation(DeclarationDescriptor descriptor, ClassDescriptor annotationClass) { List annotations = descriptor.getOriginal().getAnnotations(); if (annotations != null) { for (AnnotationDescriptor annotation : annotations) {