mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
b9cf8b0c5b
commit
5302edf980
@ -6,7 +6,6 @@ import cn.hutool.core.bean.copier.ValueProvider;
|
|||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.convert.Convert;
|
import cn.hutool.core.convert.Convert;
|
||||||
import cn.hutool.core.lang.Editor;
|
import cn.hutool.core.lang.Editor;
|
||||||
import cn.hutool.core.lang.Filter;
|
|
||||||
import cn.hutool.core.map.CaseInsensitiveMap;
|
import cn.hutool.core.map.CaseInsensitiveMap;
|
||||||
import cn.hutool.core.map.MapUtil;
|
import cn.hutool.core.map.MapUtil;
|
||||||
import cn.hutool.core.util.ArrayUtil;
|
import cn.hutool.core.util.ArrayUtil;
|
||||||
@ -198,7 +197,7 @@ public class BeanUtil {
|
|||||||
} catch (IntrospectionException e) {
|
} catch (IntrospectionException e) {
|
||||||
throw new BeanException(e);
|
throw new BeanException(e);
|
||||||
}
|
}
|
||||||
return ArrayUtil.filter(beanInfo.getPropertyDescriptors(), (Filter<PropertyDescriptor>) t -> {
|
return ArrayUtil.filter(beanInfo.getPropertyDescriptors(), t -> {
|
||||||
// 过滤掉getClass方法
|
// 过滤掉getClass方法
|
||||||
return false == "class".equals(t.getName());
|
return false == "class".equals(t.getName());
|
||||||
});
|
});
|
||||||
|
@ -255,7 +255,7 @@ public class CollUtil {
|
|||||||
* @param coll1 集合1
|
* @param coll1 集合1
|
||||||
* @param coll2 集合2
|
* @param coll2 集合2
|
||||||
* @param otherColls 其它集合
|
* @param otherColls 其它集合
|
||||||
* @return 并集的集合,返回 {@link ArrayList}
|
* @return 交集的集合,返回 {@link ArrayList}
|
||||||
*/
|
*/
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
public static <T> Collection<T> intersection(Collection<T> coll1, Collection<T> coll2, Collection<T>... otherColls) {
|
public static <T> Collection<T> intersection(Collection<T> coll1, Collection<T> coll2, Collection<T>... otherColls) {
|
||||||
@ -282,7 +282,7 @@ public class CollUtil {
|
|||||||
* @param coll1 集合1
|
* @param coll1 集合1
|
||||||
* @param coll2 集合2
|
* @param coll2 集合2
|
||||||
* @param otherColls 其它集合
|
* @param otherColls 其它集合
|
||||||
* @return 并集的集合,返回 {@link LinkedHashSet}
|
* @return 交集的集合,返回 {@link LinkedHashSet}
|
||||||
* @since 5.3.9
|
* @since 5.3.9
|
||||||
*/
|
*/
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
package cn.hutool.cron.pattern;
|
package cn.hutool.cron.pattern;
|
||||||
|
|
||||||
import java.util.Date;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class CronPatternUtilTest {
|
public class CronPatternUtilTest {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user