From b43622b87fe146a15699ad7bc18b4d932a5e9a1f Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Tue, 19 Feb 2019 11:40:33 +0100 Subject: [PATCH] Minor. Code clean --- .../org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java index 5794baca7be..b7b6a572c87 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java @@ -792,7 +792,7 @@ public class KotlinTypeMapper { } //NB: similar platform agnostic code in DescriptorUtils.unwrapFakeOverride - private FunctionDescriptor findSuperDeclaration(@NotNull FunctionDescriptor descriptor, boolean isSuperCall) { + private static FunctionDescriptor findSuperDeclaration(@NotNull FunctionDescriptor descriptor, boolean isSuperCall) { while (descriptor.getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE) { Collection overridden = descriptor.getOverriddenDescriptors(); if (overridden.isEmpty()) { @@ -1541,7 +1541,7 @@ public class KotlinTypeMapper { * In that case the generated method's return type should be boxed: otherwise it's not possible to use * this class from Java since javac issues errors when loading the class (incompatible return types) */ - public boolean forceBoxedReturnType(@NotNull FunctionDescriptor descriptor) { + private boolean forceBoxedReturnType(@NotNull FunctionDescriptor descriptor) { if (isBoxMethodForInlineClass(descriptor)) return true; //noinspection ConstantConditions