Private helpers made static
This commit is contained in:
@@ -202,7 +202,7 @@ public class KotlinBuiltIns {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private List<JetFile> loadResourcesAsJetFiles(@NotNull Project project, @NotNull List<String> libraryFiles)
|
private static List<JetFile> loadResourcesAsJetFiles(@NotNull Project project, @NotNull List<String> libraryFiles)
|
||||||
throws IOException, ProcessCanceledException
|
throws IOException, ProcessCanceledException
|
||||||
{
|
{
|
||||||
List<JetFile> files = new LinkedList<JetFile>();
|
List<JetFile> files = new LinkedList<JetFile>();
|
||||||
@@ -774,7 +774,7 @@ public class KotlinBuiltIns {
|
|||||||
return new JetTypeImpl(annotations, constructor, false, arguments, classDescriptor.getMemberScope(arguments));
|
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);
|
return new TypeProjection(Variance.INVARIANT, returnType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -887,7 +887,7 @@ public class KotlinBuiltIns {
|
|||||||
return containsAnnotation(declarationDescriptor, getDeprecatedAnnotation());
|
return containsAnnotation(declarationDescriptor, getDeprecatedAnnotation());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean containsAnnotation(DeclarationDescriptor descriptor, ClassDescriptor annotationClass) {
|
private static boolean containsAnnotation(DeclarationDescriptor descriptor, ClassDescriptor annotationClass) {
|
||||||
List<AnnotationDescriptor> annotations = descriptor.getOriginal().getAnnotations();
|
List<AnnotationDescriptor> annotations = descriptor.getOriginal().getAnnotations();
|
||||||
if (annotations != null) {
|
if (annotations != null) {
|
||||||
for (AnnotationDescriptor annotation : annotations) {
|
for (AnnotationDescriptor annotation : annotations) {
|
||||||
|
|||||||
Reference in New Issue
Block a user