(resultType: string)
| 1616 | } |
| 1617 | |
| 1618 | function wrapperResultTypeExpression(resultType: string): string { |
| 1619 | const listMatch = resultType.match(/^List<([^<>]+)>$/); |
| 1620 | if (listMatch) { |
| 1621 | return `RpcMapper.INSTANCE.getTypeFactory().constructCollectionType(List.class, ${javaClassLiteral(listMatch[1])})`; |
| 1622 | } |
| 1623 | |
| 1624 | return javaClassLiteral(resultType); |
| 1625 | } |
| 1626 | |
| 1627 | function javaClassLiteral(javaType: string): string { |
| 1628 | return javaType === "Void" ? "Void.class" : `${javaType}.class`; |
no test coverage detected
searching dependent graphs…