Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiFuPing authored and LiFuPing committed Jan 14, 2021
1 parent 158b653 commit ea5eb19
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/src/main/java/com/acap/toolkit/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
* 遍历集合
Expand Down

0 comments on commit ea5eb19

Please sign in to comment.