update 优化 encrypt 加解密模块语法 简化代码消除警告

This commit is contained in:
疯狂的狮子li 2023-02-17 12:48:23 +08:00
parent 088002bd62
commit 4bd2691422

View File

@ -65,10 +65,9 @@ public class MybatisEncryptInterceptor implements Interceptor {
*
* @param sourceObject 待加密对象
*/
@SuppressWarnings("unchecked cast")
private void encryptHandler(Object sourceObject) {
if (sourceObject instanceof Map<?, ?>) {
((Map<?, Object>) sourceObject).values().forEach(this::encryptHandler);
((Map<?, ?>) sourceObject).values().forEach(this::encryptHandler);
return;
}
if (sourceObject instanceof List<?>) {