8173094: Error in API documentation for SwingWorker
authorcoffeys
Tue, 14 Feb 2017 10:49:43 +0000
changeset 43794 497288c158bf
parent 43793 79c4fc467eb3
child 43795 526103bd9c57
8173094: Error in API documentation for SwingWorker 8173751: Syntax error in ZipFile.getComment() method 8173752: Syntax error in ZipEntry.setCompressedSize(long) method documentation 8173755: FilterOutputStream.write(byte[],int,int) javadoc correction 8173802: Incorrect argument name in java.io.FilterInputStream.read(byte[]) method documentation Reviewed-by: coffeys, chegar Contributed-by: abhijit.r.roy@oracle.com
jdk/src/java.base/share/classes/java/io/FilterInputStream.java
jdk/src/java.base/share/classes/java/io/FilterOutputStream.java
jdk/src/java.base/share/classes/java/util/zip/ZipEntry.java
jdk/src/java.base/share/classes/java/util/zip/ZipFile.java
jdk/src/java.desktop/share/classes/javax/swing/SwingWorker.java
--- a/jdk/src/java.base/share/classes/java/io/FilterInputStream.java	Tue Feb 14 12:43:57 2017 +0800
+++ b/jdk/src/java.base/share/classes/java/io/FilterInputStream.java	Tue Feb 14 10:49:43 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2017, 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
@@ -84,7 +84,7 @@
     }
 
     /**
-     * Reads up to <code>byte.length</code> bytes of data from this
+     * Reads up to <code>b.length</code> bytes of data from this
      * input stream into an array of bytes. This method blocks until some
      * input is available.
      * <p>
--- a/jdk/src/java.base/share/classes/java/io/FilterOutputStream.java	Tue Feb 14 12:43:57 2017 +0800
+++ b/jdk/src/java.base/share/classes/java/io/FilterOutputStream.java	Tue Feb 14 10:49:43 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 2017, 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
@@ -91,8 +91,8 @@
      * <code>b.length</code>.
      * <p>
      * Note that this method does not call the one-argument
-     * <code>write</code> method of its underlying stream with the single
-     * argument <code>b</code>.
+     * <code>write</code> method of its underlying output stream with
+     * the single argument <code>b</code>.
      *
      * @param      b   the data to be written.
      * @exception  IOException  if an I/O error occurs.
@@ -113,7 +113,7 @@
      * <code>byte</code> to output.
      * <p>
      * Note that this method does not call the <code>write</code> method
-     * of its underlying input stream with the same arguments. Subclasses
+     * of its underlying output stream with the same arguments. Subclasses
      * of <code>FilterOutputStream</code> should provide a more efficient
      * implementation of this method.
      *
--- a/jdk/src/java.base/share/classes/java/util/zip/ZipEntry.java	Tue Feb 14 12:43:57 2017 +0800
+++ b/jdk/src/java.base/share/classes/java/util/zip/ZipEntry.java	Tue Feb 14 10:49:43 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2017, 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
@@ -441,7 +441,7 @@
     /**
      * Sets the size of the compressed entry data.
      *
-     * @param csize the compressed size to set to
+     * @param csize the compressed size to set
      *
      * @see #getCompressedSize()
      */
--- a/jdk/src/java.base/share/classes/java/util/zip/ZipFile.java	Tue Feb 14 12:43:57 2017 +0800
+++ b/jdk/src/java.base/share/classes/java/util/zip/ZipFile.java	Tue Feb 14 10:49:43 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2017, 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
@@ -274,7 +274,7 @@
      *
      * @throws IllegalStateException if the zip file has been closed
      *
-     * Since 1.7
+     * @since 1.7
      */
     public String getComment() {
         synchronized (this) {
--- a/jdk/src/java.desktop/share/classes/javax/swing/SwingWorker.java	Tue Feb 14 12:43:57 2017 +0800
+++ b/jdk/src/java.desktop/share/classes/javax/swing/SwingWorker.java	Tue Feb 14 10:49:43 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2017, 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
@@ -575,7 +575,7 @@
      * For example:
      *
      * <pre>
-     * class SwingWorkerCompletionWaiter extends PropertyChangeListener {
+     * class SwingWorkerCompletionWaiter implements PropertyChangeListener {
      *     private JDialog dialog;
      *
      *     public SwingWorkerCompletionWaiter(JDialog dialog) {