From ddcf38012027596f09dc75cf50ce82f780590cb5 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Fri, 25 Oct 2024 08:13:34 +0200 Subject: [PATCH] Update core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java Co-authored-by: Vishesh --- .../main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java b/core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java index eabcc82040d6..123299eb2028 100644 --- a/core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java +++ b/core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.java @@ -81,7 +81,7 @@ public T[] deserialize(JsonElement json, Type typeOfT, JsonDeserializationContex cmds.add(cmd); } try { - Class type = Class.forName(typeOfT.getTypeName().replace("[]", "")); + Class type = Class.forName(typeOfT.getTypeName().replace("[]", "")); T[] ts = (T[])Array.newInstance(type, cmds.size()); return cmds.toArray(ts); } catch (ClassNotFoundException e) {