mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-03 12:18:01 +08:00
更新 StrUtil 的 toStringOrEmpty 方法 @author 信息
更新 StrUtil 的 toStringOrEmpty 方法 @author 信息 Signed-off-by: ahwei <ahwei163@qq.com>
This commit is contained in:
parent
8f31843817
commit
404f0bd394
@ -292,6 +292,7 @@ public class StrUtil extends CharSequenceUtil implements StrPool {
|
||||
*
|
||||
* @param obj 对象
|
||||
* @return {@link String }
|
||||
* @author Junwei Xu
|
||||
*/
|
||||
public static String toStringOrEmpty(Object obj) {
|
||||
// obj为空时, 返回 null 或 "null" 都不适用部分场景, 此处返回 "" 空字符串
|
||||
|
Loading…
Reference in New Issue
Block a user