Skip to content

Commit

Permalink
Update core/src/main/java/com/cloud/agent/transport/ArrayTypeAdaptor.…
Browse files Browse the repository at this point in the history
…java

Co-authored-by: Vishesh <[email protected]>
  • Loading branch information
weizhouapache and vishesh92 authored Oct 25, 2024
1 parent 3bcbb04 commit ddcf380
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ddcf380

Please sign in to comment.