mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-30 08:12:06 +01:00
Modified Passphrase.fromPassword() to fit Kotlin needs (#101)
* Added @Nonnull annotation to Passphrase.fromPassword()
This commit is contained in:
parent
39e87f9ce4
commit
491ab93c41
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package org.pgpainless.util;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.Arrays;
|
||||
|
||||
|
@ -40,7 +41,7 @@ public class Passphrase {
|
|||
* @param password password
|
||||
* @return passphrase
|
||||
*/
|
||||
public static Passphrase fromPassword(String password) {
|
||||
public static Passphrase fromPassword(@Nonnull String password) {
|
||||
return new Passphrase(password.toCharArray());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue