From f3a2c7676ee35a8dad71db295bf2fd6205a9bbd2 Mon Sep 17 00:00:00 2001 From: ZhangMan Date: Wed, 25 Oct 2023 12:22:50 +0800 Subject: [PATCH] minor --- .../core/problem/rpc/service/RPCEndpointsHandler.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCEndpointsHandler.kt b/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCEndpointsHandler.kt index 4d9f82d2b9..e56bffd2df 100644 --- a/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCEndpointsHandler.kt +++ b/core/src/main/kotlin/org/evomaster/core/problem/rpc/service/RPCEndpointsHandler.kt @@ -320,7 +320,7 @@ class RPCEndpointsHandler { } var fromClass = false - val responseGene = (if (responseTypeClass != null){ + val responseGene = ((if (responseTypeClass != null){ handleDtoParam(responseTypeClass).also { fromClass = (dbDto.responseFullTypeWithGeneric != null) } }else if (dbDto.response != null){ val node = readJson(dbDto.response) @@ -331,7 +331,9 @@ class RPCEndpointsHandler { } }else{ StringGene("return") - }.run { wrapWithOptionalGene(this, true) }) as OptionalGene + }).run { + wrapWithOptionalGene(this, true) + }) as OptionalGene val response = ClassResponseParam(className = dbDto.responseFullTypeWithGeneric?:dbDto.responseFullType, responseType = EnumGene("responseType", listOf("JSON")), response = responseGene) if (fromClass) response.responseParsedWithClass()