mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复comment
This commit is contained in:
@@ -2092,10 +2092,10 @@ public class ArrayUtil extends PrimitiveArrayUtil {
|
||||
if (isEmpty(array)) {
|
||||
return false;
|
||||
}
|
||||
Set<T> elementSet = new HashSet<>();
|
||||
Set<T> elementSet = new HashSet<>(Arrays.asList(array));
|
||||
for (T element : array) {
|
||||
elementSet.add(element);
|
||||
}
|
||||
return !(elementSet.size() == array.length);
|
||||
return elementSet.size() != array.length;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user