--- old/src/share/classes/java/security/cert/X509Extension.java 2013-06-21 18:30:06.137762537 -0700
+++ new/src/share/classes/java/security/cert/X509Extension.java 2013-06-21 18:30:05.977762540 -0700
@@ -59,9 +59,9 @@
* -- the extnId object identifier value
* }
*
- * Since not all extensions are known, the getExtensionValue
+ * Since not all extensions are known, the {@code getExtensionValue}
* method returns the DER-encoded OCTET STRING of the
- * extension value (i.e., the extnValue
). This can then
+ * extension value (i.e., the {@code extnValue}). This can then
* be handled by a Class that understands the extension.
*
* @author Hemma Prafullchandra
@@ -113,28 +113,28 @@
*
* Here is sample code to get a Set of non-critical extensions from an
* X509CRL revoked certificate entry and print the OIDs:
- *
+ * {@code
* CertificateFactory cf = null;
* X509CRL crl = null;
* try (InputStream inStrm = new FileInputStream("DER-encoded-CRL")) {
* cf = CertificateFactory.getInstance("X.509");
* crl = (X509CRL)cf.generateCRL(inStrm);
- * }
+ * }
*
- * byte[] certData = <DER-encoded certificate data>
+ * byte[] certData =
* ByteArrayInputStream bais = new ByteArrayInputStream(certData);
* X509Certificate cert = (X509Certificate)cf.generateCertificate(bais);
* X509CRLEntry badCert =
- * crl.getRevokedCertificate(cert.getSerialNumber());
+ * crl.getRevokedCertificate(cert.getSerialNumber());
*
* if (badCert != null) {
- * Set nonCritSet = badCert.getNonCriticalExtensionOIDs();
+ * Set nonCritSet = badCert.getNonCriticalExtensionOIDs();
* if (nonCritSet != null)
* for (String oid : nonCritSet) {
* System.out.println(oid);
* }
* }
- *
+ * }
*
* @return a Set (or an empty Set if none are marked non-critical) of
* the extension OID strings for extensions that are marked non-critical.
@@ -145,9 +145,9 @@
/**
* Gets the DER-encoded OCTET string for the extension value
- * (extnValue) identified by the passed-in oid
+ * (extnValue) identified by the passed-in {@code oid}
* String.
- * The oid
string is
+ * The {@code oid} string is
* represented by a set of nonnegative whole numbers separated
* by periods.
*