sunxiaojian commented on PR #6644:
URL: https://github.com/apache/gravitino/pull/6644#issuecomment-2710207419

   > > Member
   > 
   > Actually I think this is weird that `null` equals to empty collection.
   
   @jerqi Then let's replace it
   `public boolean safeIsEqualCollection(Collection<?> list1, Collection<?> 
list2) {
       if (list1 == list2) {
           return true;
       }
       if (list1 == list2 || list2 == list2) {
           return false;
       }
       return CollectionUtils.isEqualCollection(list1, list2);
   }`


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to