Skip to content

Commit

Permalink
🐛 FastJson deserialize nested generics requires specifying parameters #…
Browse files Browse the repository at this point in the history
…194

Co-authored-by: spring <[email protected]>
  • Loading branch information
HollisMeynell and spring authored Feb 26, 2024
1 parent 7a90fa0 commit 0a109a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/mikuac/shiro/core/Bot.java
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,8 @@ public ActionData customRequest(ActionPath action, Map<String, Object> params) {
*/
public <T> ActionData<T> customRequest(ActionPath action, Map<String, Object> params, Class<T> clazz) {
JSONObject result = actionHandler.action(session, action, params);
return result != null ? result.to(new TypeReference<ActionData<T>>() {
}.getType()) : null;
return result != null ? result.to(new TypeReference<ActionData<T>>(clazz) {
}) : null;
}

/**
Expand Down

0 comments on commit 0a109a6

Please sign in to comment.