Skip to content

Commit

Permalink
mark displayName as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Apr 27, 2022
1 parent 570f596 commit 878bccb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Blocking;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.Nullable;

import java.util.stream.Stream;

Expand Down Expand Up @@ -55,7 +56,7 @@ default void storePassphrase(String key, CharSequence passphrase) throws Keychai
* @throws KeychainAccessException If storing the password failed
*/
@Blocking
void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;

/**
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
Expand Down Expand Up @@ -98,7 +99,7 @@ default void changePassphrase(String key, CharSequence passphrase) throws Keycha
* @throws KeychainAccessException If changing the password failed
*/
@Blocking
void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
void changePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;

/**
* @return <code>true</code> if this KeychainAccessIntegration works on the current machine.
Expand Down

0 comments on commit 878bccb

Please sign in to comment.