mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -721,7 +721,7 @@ public class BeanUtilTest {
|
||||
new LinkedHashMap<>(),
|
||||
false,
|
||||
entry -> {
|
||||
if(false == Arrays.asList("id", "name", "code", "sortOrder").contains(entry.getKey())){
|
||||
if(! Arrays.asList("id", "name", "code", "sortOrder").contains(entry.getKey())){
|
||||
entry.setKey(null);
|
||||
}
|
||||
return entry;
|
||||
|
@@ -107,7 +107,7 @@ public class IterUtilTest {
|
||||
final List<String> obj2 = ListUtil.of("3");
|
||||
final List<String> obj = ListUtil.of("1", "3");
|
||||
|
||||
IterUtil.remove(obj.iterator(), (e)-> false == obj2.contains(e));
|
||||
IterUtil.remove(obj.iterator(), (e)-> ! obj2.contains(e));
|
||||
|
||||
Assertions.assertEquals(1, obj.size());
|
||||
Assertions.assertEquals("3", obj.get(0));
|
||||
|
@@ -61,7 +61,7 @@ public class SnowflakeTest {
|
||||
final Set<Long> ids = new ConcurrentHashSet<>();
|
||||
ThreadUtil.concurrencyTest(100, () -> {
|
||||
for (int i = 0; i < 50000; i++) {
|
||||
if(false == ids.add(snowflake.nextId())){
|
||||
if(! ids.add(snowflake.nextId())){
|
||||
throw new UtilException("重复ID!");
|
||||
}
|
||||
}
|
||||
@@ -98,7 +98,7 @@ public class SnowflakeTest {
|
||||
final Set<Long> ids = new ConcurrentHashSet<>();
|
||||
ThreadUtil.concurrencyTest(100, () -> {
|
||||
for (int i = 0; i < 50000; i++) {
|
||||
if(false == ids.add(snowflake.nextId())){
|
||||
if(! ids.add(snowflake.nextId())){
|
||||
throw new UtilException("重复ID!");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user