From 40073ad78450c9beb841750b0f4c8445ab2a85ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Thu, 4 Mar 2021 10:00:07 +0800 Subject: [PATCH] should handle void return type --- .../main/java/com/alibaba/testable/agent/util/MethodUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testable-agent/src/main/java/com/alibaba/testable/agent/util/MethodUtil.java b/testable-agent/src/main/java/com/alibaba/testable/agent/util/MethodUtil.java index b8b74fc..09ea30a 100644 --- a/testable-agent/src/main/java/com/alibaba/testable/agent/util/MethodUtil.java +++ b/testable-agent/src/main/java/com/alibaba/testable/agent/util/MethodUtil.java @@ -163,6 +163,9 @@ public class MethodUtil { case TYPE_ARRAY: isArray = true; break; + case TYPE_VOID: + sb.append(",void"); + break; case TYPE_BYTE: sb.append(",byte").append(isArray ? "[]" : ""); isArray = false;