|
|
@ -178,7 +178,7 @@ public class DesensitizedUtils { |
|
|
} else if (value instanceof Collection<?>) {//对集合类型的字段进行递归过滤
|
|
|
} else if (value instanceof Collection<?>) {//对集合类型的字段进行递归过滤
|
|
|
Collection<?> c = (Collection<?>) value; |
|
|
Collection<?> c = (Collection<?>) value; |
|
|
Iterator<?> it = c.iterator(); |
|
|
Iterator<?> it = c.iterator(); |
|
|
while (it.hasNext()) {// TODO: 待优化
|
|
|
while (it.hasNext()) { |
|
|
Object collectionObj = it.next(); |
|
|
Object collectionObj = it.next(); |
|
|
if (isNotGeneralType(collectionObj.getClass(), collectionObj, referenceCounter)) { |
|
|
if (isNotGeneralType(collectionObj.getClass(), collectionObj, referenceCounter)) { |
|
|
replace(ObjectUtils.getAllFields(collectionObj), collectionObj, referenceCounter); |
|
|
replace(ObjectUtils.getAllFields(collectionObj), collectionObj, referenceCounter); |
|
|
@ -249,7 +249,7 @@ public class DesensitizedUtils { |
|
|
} else if (value instanceof Collection<?>) {//对集合类型的字段进行递归过滤
|
|
|
} else if (value instanceof Collection<?>) {//对集合类型的字段进行递归过滤
|
|
|
Collection<?> c = (Collection<?>) value; |
|
|
Collection<?> c = (Collection<?>) value; |
|
|
Iterator<?> it = c.iterator(); |
|
|
Iterator<?> it = c.iterator(); |
|
|
while (it.hasNext()) {// TODO: 待优化
|
|
|
while (it.hasNext()) { |
|
|
Object collectionObj = it.next(); |
|
|
Object collectionObj = it.next(); |
|
|
if (isNotGeneralType(collectionObj.getClass(), collectionObj, referenceCounter)) { |
|
|
if (isNotGeneralType(collectionObj.getClass(), collectionObj, referenceCounter)) { |
|
|
guangFaReplace(ObjectUtils.getAllFields(collectionObj), collectionObj, referenceCounter); |
|
|
guangFaReplace(ObjectUtils.getAllFields(collectionObj), collectionObj, referenceCounter); |
|
|
|