From ea5eb19c3419d9be170ea7bf879110ac94a15cf2 Mon Sep 17 00:00:00 2001 From: LiFuPing Date: Thu, 14 Jan 2021 15:51:53 +0800 Subject: [PATCH] fix --- Library/src/main/java/com/acap/toolkit/Utils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/src/main/java/com/acap/toolkit/Utils.java b/Library/src/main/java/com/acap/toolkit/Utils.java index 94cc279..2503328 100644 --- a/Library/src/main/java/com/acap/toolkit/Utils.java +++ b/Library/src/main/java/com/acap/toolkit/Utils.java @@ -253,6 +253,16 @@ public static CharSequence getNotNull(CharSequence obj) { return obj; } + /** + * 获得不为空的数据 + * + * @param obj The data + * @return NotNull data + */ + public static String getNotNull(String obj) { + if (obj == null) return ""; + return obj; + } /** * 遍历集合