Skip to content

Commit c51c2b2

Browse files
committed
fix(auth): fix JSpecify nullability in UserAuthorizer and TokenStore
1 parent 4d28828 commit c51c2b2

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/MemoryTokensStorage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import java.util.HashMap;
3636
import java.util.Map;
3737
import org.jspecify.annotations.NullMarked;
38-
import org.jspecify.annotations.Nullable;
3938

4039
/** Represents an in-memory storage of tokens. */
4140
@NullMarked

google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/TokenStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ public interface TokenStore {
4646
* @return The loaded token data.
4747
* @throws IOException An error loading the token data from storage.
4848
*/
49-
@Nullable
50-
String load(String id) throws IOException;
49+
@Nullable String load(String id) throws IOException;
5150

5251
/**
5352
* Put the token data into storage for the given ID.

0 commit comments

Comments
 (0)