From ad57ca7d2c82120cbb25aed0c0eef9440a490583 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Fri, 25 May 2018 14:10:50 +0200 Subject: [PATCH] Minor. Code clean --- .../org/jetbrains/kotlin/codegen/syntheticAccessorUtil.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/backend/src/org/jetbrains/kotlin/codegen/syntheticAccessorUtil.kt b/compiler/backend/src/org/jetbrains/kotlin/codegen/syntheticAccessorUtil.kt index ef5cc40a1d6..4b922883110 100644 --- a/compiler/backend/src/org/jetbrains/kotlin/codegen/syntheticAccessorUtil.kt +++ b/compiler/backend/src/org/jetbrains/kotlin/codegen/syntheticAccessorUtil.kt @@ -28,10 +28,10 @@ enum class FieldAccessorKind(val suffix: String) { } private fun CallableMemberDescriptor.getJvmName() = - DescriptorUtils.getJvmName(this) ?: name.asString() + DescriptorUtils.getJvmName(this) ?: name.asString() fun getAccessorNameSuffix( - descriptor: CallableMemberDescriptor, superCallDescriptor: ClassDescriptor?, accessorKind: FieldAccessorKind + descriptor: CallableMemberDescriptor, superCallDescriptor: ClassDescriptor?, accessorKind: FieldAccessorKind ): String { val suffix = when (descriptor) { is ConstructorDescriptor -> @@ -41,7 +41,7 @@ fun getAccessorNameSuffix( is PropertyDescriptor -> descriptor.getJvmName() + "$" + accessorKind.suffix else -> - throw UnsupportedOperationException("Do not know how to create accessor for descriptor " + descriptor) + throw UnsupportedOperationException("Do not know how to create accessor for descriptor $descriptor") } if (accessorKind == FieldAccessorKind.JVM_DEFAULT_COMPATIBILITY) return suffix + "$" + FieldAccessorKind.JVM_DEFAULT_COMPATIBILITY.suffix return if (superCallDescriptor == null) suffix else "$suffix\$s${superCallDescriptor.name.asString().hashCode()}"