mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
96ad2ed57f
commit
00fac9d39a
@ -75,7 +75,7 @@ public class PathMover {
|
|||||||
}
|
}
|
||||||
this.src = src;
|
this.src = src;
|
||||||
this.target = Assert.notNull(target, "Target path must be not null !");
|
this.target = Assert.notNull(target, "Target path must be not null !");
|
||||||
this.options = ObjUtil.defaultIfNull(options, new CopyOption[]{});
|
this.options = ObjUtil.defaultIfNull(options, () -> new CopyOption[]{});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,7 +77,7 @@ public class UrlPath {
|
|||||||
* @return 节点列表
|
* @return 节点列表
|
||||||
*/
|
*/
|
||||||
public List<CharSequence> getSegments() {
|
public List<CharSequence> getSegments() {
|
||||||
return ObjUtil.defaultIfNull(this.segments, ListUtil.empty());
|
return ObjUtil.defaultIfNull(this.segments, ListUtil::empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -406,7 +406,7 @@ public class TypeUtil {
|
|||||||
if (null == field) {
|
if (null == field) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return getActualType(ObjUtil.defaultIfNull(type, field.getDeclaringClass()), field.getGenericType());
|
return getActualType(ObjUtil.defaultIfNull(type, field::getDeclaringClass), field.getGenericType());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user