update 优化 encrypt 加解密模块语法 简化代码消除警告
This commit is contained in:
parent
088002bd62
commit
4bd2691422
@ -65,10 +65,9 @@ public class MybatisEncryptInterceptor implements Interceptor {
|
|||||||
*
|
*
|
||||||
* @param sourceObject 待加密对象
|
* @param sourceObject 待加密对象
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked cast")
|
|
||||||
private void encryptHandler(Object sourceObject) {
|
private void encryptHandler(Object sourceObject) {
|
||||||
if (sourceObject instanceof Map<?, ?>) {
|
if (sourceObject instanceof Map<?, ?>) {
|
||||||
((Map<?, Object>) sourceObject).values().forEach(this::encryptHandler);
|
((Map<?, ?>) sourceObject).values().forEach(this::encryptHandler);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sourceObject instanceof List<?>) {
|
if (sourceObject instanceof List<?>) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user