mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
修复comment
This commit is contained in:
parent
f79e1e31fb
commit
94e6be4bf0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user