diff -r 33de7752835c -r 94bb65cb37d3 src/java.base/share/classes/java/security/cert/CertificateFactory.java --- a/src/java.base/share/classes/java/security/cert/CertificateFactory.java Fri Sep 20 11:33:30 2019 +0800 +++ b/src/java.base/share/classes/java/security/cert/CertificateFactory.java Fri Sep 20 11:07:52 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -347,7 +347,7 @@ * @return a certificate object initialized with the data * from the input stream. * - * @exception CertificateException on parsing errors. + * @throws CertificateException on parsing errors. */ public final Certificate generateCertificate(InputStream inStream) throws CertificateException @@ -385,7 +385,7 @@ * @param inStream an {@code InputStream} containing the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} - * @exception CertificateException if an exception occurs while decoding + * @throws CertificateException if an exception occurs while decoding * @since 1.4 */ public final CertPath generateCertPath(InputStream inStream) @@ -407,7 +407,7 @@ * @param encoding the encoding used for the data * @return a {@code CertPath} initialized with the data from the * {@code InputStream} - * @exception CertificateException if an exception occurs while decoding or + * @throws CertificateException if an exception occurs while decoding or * the encoding requested is not supported * @since 1.4 */ @@ -428,7 +428,7 @@ * @param certificates a {@code List} of {@code Certificate}s * @return a {@code CertPath} initialized with the supplied list of * certificates - * @exception CertificateException if an exception occurs + * @throws CertificateException if an exception occurs * @since 1.4 */ public final CertPath @@ -471,7 +471,7 @@ * java.security.cert.Certificate objects * initialized with the data from the input stream. * - * @exception CertificateException on parsing errors. + * @throws CertificateException on parsing errors. */ public final Collection generateCertificates (InputStream inStream) throws CertificateException { @@ -505,7 +505,7 @@ * @return a CRL object initialized with the data * from the input stream. * - * @exception CRLException on parsing errors. + * @throws CRLException on parsing errors. */ public final CRL generateCRL(InputStream inStream) throws CRLException @@ -544,7 +544,7 @@ * java.security.cert.CRL objects initialized with the data from the input * stream. * - * @exception CRLException on parsing errors. + * @throws CRLException on parsing errors. */ public final Collection generateCRLs(InputStream inStream) throws CRLException {