1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-12-17 01:31:08 +01:00

Added @Nonnull annotation to Passphrase.fromPassword()

This commit is contained in:
DenBond7 2021-04-09 18:48:53 +03:00
parent e77e97bc08
commit 462c9f032f
No known key found for this signature in database
GPG key ID: F74FC4E6441BA8C3
2 changed files with 4 additions and 10 deletions

View file

@ -37,11 +37,4 @@ public class PassphraseTest {
assertFalse(passphrase.isValid());
assertThrows(IllegalStateException.class, passphrase::getChars);
}
@Test
public void testFromPasswordNull() {
Passphrase passphrase = Passphrase.fromPassword(null);
assertArrayEquals(null, passphrase.getChars());
assertTrue(passphrase.isValid());
}
}