From f504f457ed50dd2440a33f32c42fd33ef2d2c9ae Mon Sep 17 00:00:00 2001 From: DU Date: Tue, 2 Feb 2021 11:31:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E5=8F=82=E6=95=B0=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/simulation/cbtc/ATS/operation/OperateMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/OperateMethod.java b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/OperateMethod.java index 50f6b52b7..a1d2faecb 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/OperateMethod.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/ATS/operation/OperateMethod.java @@ -62,7 +62,7 @@ public class OperateMethod { ParameterizedType parameterizedType = (ParameterizedType) parameter.getParameterizedType(); Class actualClass = (Class) parameterizedType.getActualTypeArguments()[0]; args[i] = JsonUtils.read(JsonUtils.writeValueAsString(param.get(parameter.getName())), - JsonUtils.getCollectionType(ArrayList.class, actualClass)); + JsonUtils.getCollectionType(parameter.getType(), actualClass)); } else if (parameter.getType().isEnum()) { Object o = param.get(parameter.getName()); Object[] enumConstants = parameter.getType().getEnumConstants();