--- a/src/java.base/share/classes/java/util/jar/JarOutputStream.java Thu Oct 17 20:27:44 2019 +0100
+++ b/src/java.base/share/classes/java/util/jar/JarOutputStream.java Thu Oct 17 20:53:35 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -29,11 +29,11 @@
import java.io.*;
/**
- * The <code>JarOutputStream</code> class is used to write the contents
+ * The {@code JarOutputStream} class is used to write the contents
* of a JAR file to any output stream. It extends the class
- * <code>java.util.zip.ZipOutputStream</code> with support
- * for writing an optional <code>Manifest</code> entry. The
- * <code>Manifest</code> can be used to specify meta-information about
+ * {@code java.util.zip.ZipOutputStream} with support
+ * for writing an optional {@code Manifest} entry. The
+ * {@code Manifest} can be used to specify meta-information about
* the JAR file and its entries.
*
* @author David Connelly
@@ -46,13 +46,13 @@
private static final int JAR_MAGIC = 0xCAFE;
/**
- * Creates a new <code>JarOutputStream</code> with the specified
- * <code>Manifest</code>. The manifest is written as the first
+ * Creates a new {@code JarOutputStream} with the specified
+ * {@code Manifest}. The manifest is written as the first
* entry to the output stream.
*
* @param out the actual output stream
- * @param man the optional <code>Manifest</code>
- * @exception IOException if an I/O error has occurred
+ * @param man the optional {@code Manifest}
+ * @throws IOException if an I/O error has occurred
*/
public JarOutputStream(OutputStream out, Manifest man) throws IOException {
super(out);
@@ -66,9 +66,9 @@
}
/**
- * Creates a new <code>JarOutputStream</code> with no manifest.
+ * Creates a new {@code JarOutputStream} with no manifest.
* @param out the actual output stream
- * @exception IOException if an I/O error has occurred
+ * @throws IOException if an I/O error has occurred
*/
public JarOutputStream(OutputStream out) throws IOException {
super(out);
@@ -83,8 +83,8 @@
* time.
*
* @param ze the ZIP/JAR entry to be written
- * @exception ZipException if a ZIP error has occurred
- * @exception IOException if an I/O error has occurred
+ * @throws ZipException if a ZIP error has occurred
+ * @throws IOException if an I/O error has occurred
*/
public void putNextEntry(ZipEntry ze) throws IOException {
if (firstEntry) {