Skip to content

Commit e882880

Browse files
committed
Server:同步eclipse版至idea版
1 parent 53dd0da commit e882880

File tree

2 files changed

+188
-172
lines changed

2 files changed

+188
-172
lines changed

APIJSON(Server)/APIJSON(Idea)/src/main/java/zuo/biao/apijson/StringUtil.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -296,20 +296,7 @@ public static boolean isNotEmpty(CharSequence cs, boolean trim) {
296296
* @return
297297
*/
298298
public static boolean isNotEmpty(String s, boolean trim) {
299-
// Log.i(TAG, "getTrimedString s = " + s);
300-
if (s == null) {
301-
return false;
302-
}
303-
if (trim) {
304-
s = s.trim();
305-
}
306-
if (s.length() <= 0) {
307-
return false;
308-
}
309-
310-
currentString = s;
311-
312-
return true;
299+
return ! isEmpty(s, trim);
313300
}
314301

315302
//判断字符是否非空 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

0 commit comments

Comments
 (0)