dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] takeseem commented on issue #1516: 请求解决序列化问题
Date Tue, 10 Apr 2018 07:19:33 GMT
takeseem commented on issue #1516: 请求解决序列化问题
URL: https://github.com/apache/incubator-dubbo/issues/1516#issuecomment-379999842
 
 
   其实这个需求不应该由dubbo实现,本身就是[null],为什么经过dubbo rpc后,变成了[],这本身就是问题!
   
   你完全可以直接写一个工具方法,在return时处理list:return ltrim(list);
   ```java
   public static ltrim(List list) {
     if (list != null && !list.isEmpty() && list.get(0) == null) list.remove(0);
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message