You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/09/23 01:19:42 UTC

[GitHub] [dolphinscheduler] EricPyZhou edited a comment on pull request #6283: [Fix-6072][common] Remove Generic method JsonUtils.toMap

EricPyZhou edited a comment on pull request #6283:
URL: https://github.com/apache/dolphinscheduler/pull/6283#issuecomment-925440571


   @ruanwenjun One question towards to whether we should remove
   ```
   public static Map<String, String> toMap(String json) {
       return parseObject(json, new TypeReference<Map<String, String>>() {});
   }
   ```
   In this method, I personally think we can keep it here because it does not lose compiled type check, but 
   `public static <K, V> Map<K, V> toMap(String json, Class<K> classK, Class<V> classV)` actually does lose that information.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org