mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
1097968126
commit
8455f76110
@ -45,7 +45,7 @@ public class JceCipher implements Cipher, Wrapper<javax.crypto.Cipher> {
|
||||
* @param cipher {@link javax.crypto.Cipher}
|
||||
*/
|
||||
public JceCipher(final javax.crypto.Cipher cipher) {
|
||||
this.cipher = cipher;
|
||||
this.cipher = Assert.notNull(cipher);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -38,7 +38,7 @@ public class BCCipher implements Cipher, Wrapper<BufferedBlockCipher> {
|
||||
* @param blockCipher {@link BufferedBlockCipher}
|
||||
*/
|
||||
public BCCipher(final BufferedBlockCipher blockCipher) {
|
||||
this.blockCipher = blockCipher;
|
||||
this.blockCipher = Assert.notNull(blockCipher);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user