[Bug report] Possible error in the equals
method for collection
#6641
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Version
main branch
Describe what's wrong
The following test will fail due to the fact that for
Objects.equals
, a collection with the same elements but different sequence are notequal
.There are a lot of method
equals
usingObjects.equals
to compare collection.gravitino/api/src/main/java/org/apache/gravitino/authorization/SecurableObjects.java
Lines 161 to 171 in 0616fbc
gravitino/core/src/main/java/org/apache/gravitino/meta/UserEntity.java
Lines 158 to 169 in 0616fbc
We can use apache common-collection4 CollectionUtils.isEqualCollection to replace
Object.equals
for collection value.Error message and/or stacktrace
Please see above
How to reproduce
please see above
Additional context
No response
The text was updated successfully, but these errors were encountered: