Skip to content

Commit

Permalink
# added type conversion for kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
sbra0902 committed Jul 1, 2020
1 parent b044f60 commit e0fa20f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CblGenerateAccessorHolder(private val className: String, val element: Elem
var methodBuilder = FunSpec.builder(element.simpleName.toString()).addAnnotation(JvmStatic::class)

(element as ExecutableElement)?.apply {
methodBuilder.returns(returnType.asTypeName())
methodBuilder.returns(returnType.asTypeName().javaToKotlinType())
parameters.forEach {
methodBuilder.addParameter(it.simpleName.toString(), it.asType().asTypeName().javaToKotlinType())
}
Expand Down

0 comments on commit e0fa20f

Please sign in to comment.