Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jonamireh authored and ting-yuan committed Nov 1, 2024
1 parent 70853db commit 2a571ad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> ""
}

Expand Down

0 comments on commit 2a571ad

Please sign in to comment.