mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -300,9 +300,11 @@ public class SymmetricCrypto implements SymmetricEncryptor, SymmetricDecryptor,
|
||||
throw new CryptoException(e);
|
||||
} finally {
|
||||
lock.unlock();
|
||||
// issue#I4EMST@Gitee
|
||||
// CipherOutputStream必须关闭,才能完全写出
|
||||
IoUtil.close(cipherOutputStream);
|
||||
if (isClose) {
|
||||
IoUtil.close(data);
|
||||
IoUtil.close(cipherOutputStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -351,9 +353,11 @@ public class SymmetricCrypto implements SymmetricEncryptor, SymmetricDecryptor,
|
||||
throw new CryptoException(e);
|
||||
} finally {
|
||||
lock.unlock();
|
||||
// issue#I4EMST@Gitee
|
||||
// CipherOutputStream必须关闭,才能完全写出
|
||||
IoUtil.close(cipherInputStream);
|
||||
if (isClose) {
|
||||
IoUtil.close(data);
|
||||
IoUtil.close(cipherInputStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user