From cc3b6998b12dd849da5dfd805f68b77266f1f4bd Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 10 Apr 2017 14:53:06 +0300 Subject: [PATCH] Minor: fix warnings in KotlinTypeMapper.java --- .../kotlin/codegen/state/KotlinTypeMapper.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 65ad1e2251a..36be48bc9eb 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.java @@ -269,7 +269,7 @@ public class KotlinTypeMapper { return implClassId; } - @Nullable + @NotNull private static ContainingClassesInfo forPackageMember( @NotNull FqName packageFqName, @NotNull String facadeClassName, @@ -549,7 +549,7 @@ public class KotlinTypeMapper { signatureVisitor.writeClassEnd(); } - @Nullable + @NotNull private static String getJvmShortName(@NotNull ClassDescriptor klass) { ClassId classId = JavaToKotlinClassMap.INSTANCE.mapKotlinToJava(DescriptorUtils.getFqName(klass)); if (classId != null) { @@ -989,7 +989,7 @@ public class KotlinTypeMapper { @NotNull public Method mapAsmMethod(@NotNull FunctionDescriptor descriptor) { - return mapSignature(descriptor, true).getAsmMethod(); + return mapSignature(descriptor).getAsmMethod(); } @NotNull @@ -998,8 +998,8 @@ public class KotlinTypeMapper { } @NotNull - private JvmMethodGenericSignature mapSignature(@NotNull FunctionDescriptor f, boolean skipGenericSignature) { - return mapSignature(f, OwnerKind.IMPLEMENTATION, skipGenericSignature); + private JvmMethodGenericSignature mapSignature(@NotNull FunctionDescriptor f) { + return mapSignature(f, OwnerKind.IMPLEMENTATION, true); } @NotNull