更新bean基础类

This commit is contained in:
ZhanGSKen 2025-02-21 10:56:13 +08:00
parent 292f7c553f
commit 22a4a71203
3 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Thu Feb 20 11:24:31 HKT 2025
#Fri Feb 21 02:55:07 GMT 2025
stageCount=6
libraryProject=libappbase
baseVersion=1.5
publishVersion=1.5.5
buildCount=0
buildCount=2
baseBetaVersion=1.5.6

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Thu Feb 20 11:24:23 HKT 2025
#Fri Feb 21 02:55:07 GMT 2025
stageCount=6
libraryProject=libappbase
baseVersion=1.5
publishVersion=1.5.5
buildCount=0
buildCount=2
baseBetaVersion=1.5.6

View File

@ -118,7 +118,11 @@ public abstract class BaseBean<T extends BaseBean> {
public static <T extends BaseBean> boolean parseStringToBeanList(String szBeanList, ArrayList<T> beanList, Class<T> clazz) {
try {
beanList.clear();
if(beanList == null) {
beanList = new ArrayList<T>();
} else {
beanList.clear();
}
StringReader stringReader = new StringReader(szBeanList);
JsonReader jsonReader = new JsonReader(stringReader);
jsonReader.beginArray();