From f0b83d810de932d247b63122a0848bf29652846e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Fri, 3 Mar 2023 16:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91AesEncryptUtil?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jero/common/util/encryption/AesEncryptUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/encryption/AesEncryptUtil.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/encryption/AesEncryptUtil.java index 79523bf2..88a0e21c 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/encryption/AesEncryptUtil.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/util/encryption/AesEncryptUtil.java @@ -89,7 +89,7 @@ public class AesEncryptUtil { * @return * @throws Exception */ - public static String encrypt(String data) throws Exception { + public static String encrypt(String data) { return encrypt(data, KEY, IV); } @@ -99,7 +99,7 @@ public class AesEncryptUtil { * @return * @throws Exception */ - public static String desEncrypt(String data) throws Exception { + public static String desEncrypt(String data) { return desEncrypt(data, KEY, IV); } }