Skip to content

Commit 878bccb

Browse files
mark displayName as nullable
1 parent 570f596 commit 878bccb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/cryptomator/integrations/keychain/KeychainAccessProvider.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.jetbrains.annotations.ApiStatus;
55
import org.jetbrains.annotations.Blocking;
66
import org.jetbrains.annotations.Nls;
7+
import org.jetbrains.annotations.Nullable;
78

89
import java.util.stream.Stream;
910

@@ -55,7 +56,7 @@ default void storePassphrase(String key, CharSequence passphrase) throws Keychai
5556
* @throws KeychainAccessException If storing the password failed
5657
*/
5758
@Blocking
58-
void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
59+
void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;
5960

6061
/**
6162
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
@@ -98,7 +99,7 @@ default void changePassphrase(String key, CharSequence passphrase) throws Keycha
9899
* @throws KeychainAccessException If changing the password failed
99100
*/
100101
@Blocking
101-
void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
102+
void changePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;
102103

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

0 commit comments

Comments
 (0)