You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/10/10 13:46:35 UTC

[GitHub] [shenyu] li-keguo commented on pull request #4065: [ISSUE #4063] exclude null list

li-keguo commented on PR #4065:
URL: https://github.com/apache/shenyu/pull/4065#issuecomment-1273337226

   Hello, your fix makes this method non-semantic
   
   Maybe you should offer a new approach instead
   
   eg:
   
   ```java
       @SafeVarargs
       public static <T> List<T> notNullList(final T... t) {
           return Stream.of(t).filter(Objects::nonNull).collect(Collectors.toList());
       }
   ```


-- 
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: notifications-unsubscribe@shenyu.apache.org

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