Skip to content

Commit a97acb6

Browse files
committed
Make hints @nonnull
The reason we couldn't do this previously is that we were setting `hints` to `null` in the `PublicKeyCredentialRequestOptions` generator. We no longer do since commit 89e78ff, so we can now require this to be non-null.
1 parent 8834c47 commit a97acb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/data/PublicKeyCredentialCreationOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public PublicKeyCredentialCreationOptionsBuilder hints(
333333
Arrays.stream(hints).map(PublicKeyCredentialHint::getValue).toArray(String[]::new));
334334
}
335335

336-
public PublicKeyCredentialCreationOptionsBuilder hints(List<String> hints) {
336+
public PublicKeyCredentialCreationOptionsBuilder hints(@NonNull List<String> hints) {
337337
this.hints = hints;
338338
return this;
339339
}

webauthn-server-core/src/main/java/com/yubico/webauthn/data/PublicKeyCredentialRequestOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public PublicKeyCredentialRequestOptionsBuilder hints(
230230
Arrays.stream(hints).map(PublicKeyCredentialHint::getValue).toArray(String[]::new));
231231
}
232232

233-
public PublicKeyCredentialRequestOptionsBuilder hints(List<String> hints) {
233+
public PublicKeyCredentialRequestOptionsBuilder hints(@NonNull List<String> hints) {
234234
this.hints = hints;
235235
return this;
236236
}

0 commit comments

Comments
 (0)