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
ed776e1231
commit
060ec1411e
@ -3268,7 +3268,7 @@ public class CharSequenceUtil extends StrValidator {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public static <T extends CharSequence> T firstNonEmpty(final T... strs) {
|
public static <T extends CharSequence> T firstNonEmpty(final T... strs) {
|
||||||
return ArrayUtil.firstMatch(StrUtil::isNotEmpty, strs);
|
return ArrayUtil.firstMatch(CharSequenceUtil::isNotEmpty, strs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3282,7 +3282,7 @@ public class CharSequenceUtil extends StrValidator {
|
|||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public static <T extends CharSequence> T firstNonBlank(final T... strs) {
|
public static <T extends CharSequence> T firstNonBlank(final T... strs) {
|
||||||
return ArrayUtil.firstMatch(StrUtil::isNotBlank, strs);
|
return ArrayUtil.firstMatch(CharSequenceUtil::isNotBlank, strs);
|
||||||
}
|
}
|
||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user