In #12, I was wrong when checking the return value is an array.
Class.forName("className") does not return an Array class (class.isArray is always false).
With this PR, I try to fix this by checking whether actualTypeArguments.firstOrNull().typeName ends with [].
Besides, I also update the code for checking Continuation in the return type. Instead of checking from typeName string, we can make it more reliable by comparing it with lastParameter.rawType.typeName.
In #12, I was wrong when checking the return value is an array.
Class.forName("className")
does not return an Array class (class.isArray
is always false). With this PR, I try to fix this by checking whetheractualTypeArguments.firstOrNull().typeName
ends with[]
.Besides, I also update the code for checking
Continuation
in the return type. Instead of checking from typeName string, we can make it more reliable by comparing it withlastParameter.rawType.typeName
.