Skip to content

Commit 25fdf7c

Browse files
committed
[commit]
1 parent 0917584 commit 25fdf7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ compile 'com.code19.library:library:0.0.6'
6868
* transformlat 纬度转换
6969
* transformlng 经度转换
7070
* out_of_china 判断是否在国内,不在国内不做偏移
71+
7172
- DateUtil.java 日期工具类
7273
* formatDataTime 格式化日期时间
7374
* formatDate 格式化日期
@@ -202,6 +203,7 @@ compile 'com.code19.library:library:0.0.6'
202203
* isChinese 是否是中文
203204
* isContainChinese 是否包含中文
204205
* strFormat2 不足2位前面补0
206+
* convert2Int 类型安全转换
205207

206208
- SystemUtils.java 系统工具
207209
* sendSMS 调用系统发送短信

library/src/main/java/com/code19/library/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public static String strFormat2(String str) {
209209
return str;
210210
}
211211

212-
public static int conver2Int(Object value, int defaultValue) {
212+
public static int convert2Int(Object value, int defaultValue) {
213213
if (value == null || "".equals(value.toString().trim())) {
214214
return defaultValue;
215215
}

0 commit comments

Comments
 (0)