Skip to content

Commit 1279688

Browse files
committed
Add a couple missing @Nullable annotations in java.security.
1 parent 7463e70 commit 1279688

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/java.base/share/classes/java/security/KeyStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ public final boolean isCertificateEntry(String alias)
14301430
* @throws CertificateException if any of the certificates included in
14311431
* the keystore data could not be stored
14321432
*/
1433-
public final void store(OutputStream stream, char[] password)
1433+
public final void store(OutputStream stream, char @Nullable [] password)
14341434
throws KeyStoreException, IOException, NoSuchAlgorithmException,
14351435
CertificateException
14361436
{

src/java.base/share/classes/java/security/ProtectionDomain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public ProtectionDomain(@Nullable CodeSource codesource,
133133
public ProtectionDomain(@Nullable CodeSource codesource,
134134
@Nullable PermissionCollection permissions,
135135
@Nullable ClassLoader classloader,
136-
Principal[] principals) {
136+
Principal @Nullable [] principals) {
137137
this.codesource = codesource;
138138
if (permissions != null) {
139139
this.permissions = permissions;

0 commit comments

Comments
 (0)