Commit d8109d6e authored by yanzg's avatar yanzg

身份证识别

parent 1dc8c0da
package com.yanzuoguang.util.helper;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.*;
/**
* 字符串帮主类
......@@ -76,8 +73,7 @@ public class ArrayHelper {
* @return
*/
public static boolean isArrayOrList(Object val) {
boolean isArray = val != null && (val instanceof List || val.getClass().isArray());
return isArray;
return val != null && (val instanceof Collection || val.getClass().isArray());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment