Skip to content

Commit db8b3cd

Browse files
driverktcoffeys
authored andcommitted
8305963: Typo in java.security.Security.getProperty
Co-authored-by: Sean Coffey <coffeys@openjdk.org> Reviewed-by: coffeys, wetmore
1 parent dcb2f3f commit db8b3cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -702,14 +702,15 @@ static Object[] getImpl(String algorithm, String type, Provider provider,
702702
*
703703
* @param key the key of the property being retrieved.
704704
*
705-
* @return the value of the security property corresponding to key.
705+
* @return the value of the security property, or {@code null} if there
706+
* is no property with that key.
706707
*
707708
* @throws SecurityException
708709
* if a security manager exists and its {@link
709710
* java.lang.SecurityManager#checkPermission} method
710711
* denies
711712
* access to retrieve the specified security property value
712-
* @throws NullPointerException is key is {@code null}
713+
* @throws NullPointerException if key is {@code null}
713714
*
714715
* @see #setProperty
715716
* @see java.security.SecurityPermission

0 commit comments

Comments
 (0)