Skip to content

Commit

Permalink
Merge pull request #60 from bobi/dev
Browse files Browse the repository at this point in the history
- Improved code completion
  • Loading branch information
bobi authored Sep 10, 2022
2 parents d0f11c8 + ff29cce commit ef64084
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ private fun parseType(declaredType: Any?): TypeDescriptor {
val genericStart = stringType.indexOf('<')
val genericEnd = stringType.lastIndexOf('>')

if (genericStart > 0 && genericEnd > 0) {
return if (genericStart > 0 && genericEnd > 0) {
val fqn = stringType.substring(0, genericStart)
val genericType = stringType.substring(genericStart + 1, genericEnd)

return TypeDescriptor(fqn = fqn, genericType = genericType)
TypeDescriptor(fqn = fqn, genericType = genericType)
} else {
return TypeDescriptor(fqn = stringType)
TypeDescriptor(fqn = stringType)
}
}

Expand Down

0 comments on commit ef64084

Please sign in to comment.