8370688: Updated the documentation to describe the behavior using @implSpec

This commit is contained in:
Koushik Thirupattur 2026-01-22 13:40:20 -08:00
parent 3abe2ff595
commit 548af3e6e2

View File

@ -114,9 +114,10 @@ public class JarEntry extends ZipEntry {
* validate each signer's certificate chain, and determining whether
* to trust the entry signed by the signers.
*
* @return the {@code Certificate} objects for this entry, or
* {@code null} if none. If non-null, returns a new array
* each time it is invoked.
* @implSpec If non-null, this implementation returns a new array each time
* this method is invoked.
*
* @return the {@code Certificate} objects for this entry, or {@code null} if none.
*
*/
public Certificate[] getCertificates() {
@ -140,9 +141,10 @@ public class JarEntry extends ZipEntry {
* validate each signer's certificate chain, and determining whether
* to trust the entry signed by the signers.
*
* @return the {@code CodeSigner} objects for this entry, or
* {@code null} if none. If non-null, returns a new array
* each time it is invoked.
* @implSpec If non-null, this implementation returns a new array each time
* this method is invoked.
*
* @return the {@code CodeSigner} objects for this entry, or {@code null} if none.
*
* @since 1.5
*/