diff --git a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/ResolverAAImpl.kt b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/ResolverAAImpl.kt index 3dfaa123be..f78a84577c 100644 --- a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/ResolverAAImpl.kt +++ b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/ResolverAAImpl.kt @@ -461,9 +461,9 @@ class ResolverAAImpl( val name = accessor.receiver.simpleName.asString() val uppercasedName = name.replaceFirstChar(Char::uppercaseChar) // https://kotlinlang.org/docs/java-to-kotlin-interop.html#properties - val prefixedName = when(accessor) { - is KSPropertyGetter -> if(name.startsWith("is")) name else "get$uppercasedName" - is KSPropertySetter -> if(name.startsWith("is")) "set${name.removePrefix("is")}" else "set$uppercasedName" + val prefixedName = when (accessor) { + is KSPropertyGetter -> if (name.startsWith("is")) name else "get$uppercasedName" + is KSPropertySetter -> if (name.startsWith("is")) "set${name.removePrefix("is")}" else "set$uppercasedName" else -> "" }