Hi, Andrey.

I found only one questionable place in the fix:
==================
     /**
      * Returns an object created with id=key. If the object is not of
-     * type type, this will throw an exception.
+     * that type, this will throw an exception.
      */
     private Object lookup(String key, Class<?> type) throws SAXException {
         Object value;
==================
The first "type" is a synonym to "class" and the second "type" is the name of 
the method parameter.

Instead of first "type" you can use "an instance of <code>type</code>" or 
"class".



On 31/01/2019 14:28, Andrey Turbanov wrote:
Hello.
I would like to contribute small patch to fix repeated words typos.

Andrey Turbanov


diff --git 
a/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameManager.java
b/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameManager.java
index c2ce10b0e4a..ccd65105699 100644
--- 
a/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameManager.java
+++ 
b/src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameManager.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 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
@@ -43,7 +43,7 @@ import javax.swing.*;
   * This class implements a DesktopManager which more closely follows
   * the MDI model than the DefaultDesktopManager.  Unlike the
   * DefaultDesktopManager policy, MDI requires that the selected
- * and activated child frames are the same, and that that frame
+ * and activated child frames are the same, and that this frame
   * always be the top-most window.
   * <p>
   * The maximized state is managed by the DesktopManager with MDI,
diff --git 
a/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFIFD.java
b/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFIFD.java
index bc21d5b8118..e1270283d4e 100644
--- a/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFIFD.java
+++ b/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFIFD.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -786,7 +786,7 @@ public class TIFFIFD extends TIFFDirectory {
                  // The IFD entry value is a pointer to the actual field value.
                  long offset = stream.readUnsignedInt();

-                // Check whether the the field value is within the stream.
+                // Check whether the field value is within the stream.
                  if (haveStreamLength && offset + size > streamLength) {
                      continue;
                  }
diff --git 
a/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFRenderedImage.java
b/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFRenderedImage.java
index 77e0c9a109c..d5ebebb0857 100644
--- 
a/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFRenderedImage.java
+++ 
b/src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFRenderedImage.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -86,7 +86,7 @@ public class TIFFRenderedImage implements RenderedImage {

      /**
       * Creates a copy of {@code param}. The source subsampling and
-     * and bands settings and the destination bands and offset settings
+     * bands settings and the destination bands and offset settings
       * are copied. If {@code param} is a {@code TIFFImageReadParam}
       * then the {@code TIFFDecompressor} and
       * {@code TIFFColorConverter} settings are also copied; otherwise
diff --git 
a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
index 0e18f4d55a9..35e4d901305 100644
--- 
a/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
+++ 
b/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKLookAndFeel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -68,7 +68,7 @@ public class GTKLookAndFeel extends SynthLookAndFeel {

      /*
       * Used to override if system (desktop) text anti-aliasing settings should
-     * be used. The reasons for this are are is that currently its "off"
+     * be used. The reasons for this are is that currently its "off"
       * for CJK locales which is not likely to be a good universal answer, and
       * also its off for remote display. So this provides an unsupported
       * way to explicitly request that it be "on".
diff --git a/src/java.desktop/share/classes/java/awt/FlowLayout.java
b/src/java.desktop/share/classes/java/awt/FlowLayout.java
index 7cdfe67619b..702307886c4 100644
--- a/src/java.desktop/share/classes/java/awt/FlowLayout.java
+++ b/src/java.desktop/share/classes/java/awt/FlowLayout.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -176,7 +176,7 @@ public class FlowLayout implements LayoutManager,
java.io.Serializable {
      /**
       * The flow layout manager allows a separation of
       * components with gaps.  The vertical gap will
-     * specify the space between rows and between the
+     * specify the space between rows and between
       * the rows and the borders of the {@code Container}.
       *
       * @serial
diff --git a/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java
b/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java
index f6079ede2ec..dfd1619c7f2 100644
--- a/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java
+++ b/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -235,7 +235,7 @@ public abstract class KeyboardFocusManager
       * is replaced with a new instance of DefaultKeyboardFocusManager.
       * <p>
       * If a SecurityManager is installed, the calling thread must be granted
-     * the AWTPermission "replaceKeyboardFocusManager" in order to replace the
+     * the AWTPermission "replaceKeyboardFocusManager" in order to replace
       * the current KeyboardFocusManager. If this permission is not granted,
       * this method will throw a SecurityException, and the current
       * KeyboardFocusManager will be unchanged.
diff --git a/src/java.desktop/share/classes/java/awt/RenderingHints.java
b/src/java.desktop/share/classes/java/awt/RenderingHints.java
index 6403821b66a..352e5880d91 100644
--- a/src/java.desktop/share/classes/java/awt/RenderingHints.java
+++ b/src/java.desktop/share/classes/java/awt/RenderingHints.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2013, 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
@@ -1256,7 +1256,7 @@ public class RenderingHints
       * The {@code Set} is backed by the {@code RenderingHints},
       * so changes to the {@code RenderingHints} are reflected
       * in the {@code Set}, and vice-versa.  If the
-     * {@code RenderingHints} is modified while
+     * {@code RenderingHints} is modified
       * while an iteration over the {@code Set} is in progress,
       * the results of the iteration are undefined.
       * <p>
diff --git a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java
b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java
index 64d91e6b589..b51d5cba055 100644
--- a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java
+++ b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -56,7 +56,7 @@ import sun.java2d.cmm.ProfileDeferralInfo;
   * To transform from a device profile color space to the CIEXYZ Profile
   * Connection Space, each device color component is first linearized
by a lookup
   * through the corresponding tone reproduction curve (TRC). The
resulting linear
- * RGB components are converted to the CIEXYZ PCS using a a 3x3 matrix
+ * RGB components are converted to the CIEXYZ PCS using a 3x3 matrix
   * constructed from the RGB colorants.
   * <pre>
   *
diff --git a/src/java.desktop/share/classes/java/awt/event/ActionEvent.java
b/src/java.desktop/share/classes/java/awt/event/ActionEvent.java
index 1c92f6a4061..71f951f9a40 100644
--- a/src/java.desktop/share/classes/java/awt/event/ActionEvent.java
+++ b/src/java.desktop/share/classes/java/awt/event/ActionEvent.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -237,7 +237,7 @@ public class ActionEvent extends AWTEvent {
       * would identify the intended action.
       * <p>
       * Note that if a {@code null} command string was passed
-     * to the constructor for this {@code ActionEvent}, this
+     * to the constructor for this {@code ActionEvent},
       * this method returns {@code null}.
       *
       * @return the string identifying the command for this event
diff --git a/src/java.desktop/share/classes/java/awt/font/LineMetrics.java
b/src/java.desktop/share/classes/java/awt/font/LineMetrics.java
index f5665591400..d4328693ab5 100644
--- a/src/java.desktop/share/classes/java/awt/font/LineMetrics.java
+++ b/src/java.desktop/share/classes/java/awt/font/LineMetrics.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2003, 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
@@ -56,7 +56,7 @@ public abstract class LineMetrics {
      /**
       * Returns the ascent of the text.  The ascent
       * is the distance from the baseline
-     * to the ascender line.  The ascent usually represents the
+     * to the ascender line.  The ascent usually represents
       * the height of the capital letters of the text.  Some characters
       * can extend above the ascender line.
       * @return the ascent of the text.
diff --git a/src/java.desktop/share/classes/java/awt/font/TextLayout.java
b/src/java.desktop/share/classes/java/awt/font/TextLayout.java
index 1793bc73a48..a28ce79912b 100644
--- a/src/java.desktop/share/classes/java/awt/font/TextLayout.java
+++ b/src/java.desktop/share/classes/java/awt/font/TextLayout.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2013, 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
@@ -540,7 +540,7 @@ public final class TextLayout implements Cloneable {
      /**
       * Creates a {@code TextLayout} from a {@link TextLine} and
       * some paragraph data.  This method is used by {@link TextMeasurer}.
-     * @param textLine the line measurement attributes to apply to the
+     * @param textLine the line measurement attributes to apply to
       *       the resulting {@code TextLayout}
       * @param baseline the baseline of the text
       * @param baselineOffsets the baseline offsets for this
diff --git a/src/java.desktop/share/classes/java/awt/font/TextMeasurer.java
b/src/java.desktop/share/classes/java/awt/font/TextMeasurer.java
index 5f47384697a..37beed7aca1 100644
--- a/src/java.desktop/share/classes/java/awt/font/TextMeasurer.java
+++ b/src/java.desktop/share/classes/java/awt/font/TextMeasurer.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2011, 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
@@ -539,7 +539,7 @@ public final class TextMeasurer implements Cloneable {
      }

      /**
-     * Returns the index of the first character which will not fit on
+     * Returns the index of the first character which will not fit
       * on a line beginning at {@code start} and possible
       * measuring up to {@code maxAdvance} in graphical width.
       *
diff --git a/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java
b/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java
index 495a7bf1686..98897464ab8 100644
--- a/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java
+++ b/src/java.desktop/share/classes/java/awt/geom/CubicCurve2D.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -988,15 +988,15 @@ public abstract class CubicCurve2D implements
Shape, Cloneable {
       * equals ({@code leftoff} + 6), in order
       * to avoid allocating extra storage for this common point.
       * @param src the array holding the coordinates for the source curve
-     * @param srcoff the offset into the array of the beginning of the
+     * @param srcoff the offset into the array of the beginning of
       * the 6 source coordinates
       * @param left the array for storing the coordinates for the first
       * half of the subdivided curve
-     * @param leftoff the offset into the array of the beginning of the
+     * @param leftoff the offset into the array of the beginning of
       * the 6 left coordinates
       * @param right the array for storing the coordinates for the second
       * half of the subdivided curve
-     * @param rightoff the offset into the array of the beginning of the
+     * @param rightoff the offset into the array of the beginning of
       * the 6 right coordinates
       * @since 1.2
       */
diff --git a/src/java.desktop/share/classes/java/awt/geom/CubicIterator.java
b/src/java.desktop/share/classes/java/awt/geom/CubicIterator.java
index 38346f37771..ab62a1349b0 100644
--- a/src/java.desktop/share/classes/java/awt/geom/CubicIterator.java
+++ b/src/java.desktop/share/classes/java/awt/geom/CubicIterator.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 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
@@ -90,7 +90,7 @@ class CubicIterator implements PathIterator {
       */
      public int currentSegment(float[] coords) {
          if (isDone()) {
-            throw new NoSuchElementException("cubic iterator iterator
out of bounds");
+            throw new NoSuchElementException("cubic iterator is out
of bounds");
          }
          int type;
          if (index == 0) {
@@ -132,7 +132,7 @@ class CubicIterator implements PathIterator {
       */
      public int currentSegment(double[] coords) {
          if (isDone()) {
-            throw new NoSuchElementException("cubic iterator iterator
out of bounds");
+            throw new NoSuchElementException("cubic iterator is out
of bounds");
          }
          int type;
          if (index == 0) {
diff --git a/src/java.desktop/share/classes/java/awt/geom/QuadCurve2D.java
b/src/java.desktop/share/classes/java/awt/geom/QuadCurve2D.java
index c1c2c7c3365..13afb47110a 100644
--- a/src/java.desktop/share/classes/java/awt/geom/QuadCurve2D.java
+++ b/src/java.desktop/share/classes/java/awt/geom/QuadCurve2D.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -658,7 +658,7 @@ public abstract class QuadCurve2D implements
Shape, Cloneable {
       * quadratic curve specified by the control points stored in the
       * indicated array at the indicated index.
       * @param coords an array containing coordinate values
-     * @param offset the index into {@code coords} from which to
+     * @param offset the index into {@code coords} from which
       *          to start getting the values from the array
       * @return the flatness of the quadratic curve that is defined by the
       *          values in the specified array at the specified index.
@@ -785,15 +785,15 @@ public abstract class QuadCurve2D implements
Shape, Cloneable {
       * {@code rightoff} equals {@code leftoff} + 4 in order
       * to avoid allocating extra storage for this common point.
       * @param src the array holding the coordinates for the source curve
-     * @param srcoff the offset into the array of the beginning of the
+     * @param srcoff the offset into the array of the beginning of
       * the 6 source coordinates
       * @param left the array for storing the coordinates for the first
       * half of the subdivided curve
-     * @param leftoff the offset into the array of the beginning of the
+     * @param leftoff the offset into the array of the beginning of
       * the 6 left coordinates
       * @param right the array for storing the coordinates for the second
       * half of the subdivided curve
-     * @param rightoff the offset into the array of the beginning of the
+     * @param rightoff the offset into the array of the beginning of
       * the 6 right coordinates
       * @since 1.2
       */
diff --git a/src/java.desktop/share/classes/java/awt/geom/QuadIterator.java
b/src/java.desktop/share/classes/java/awt/geom/QuadIterator.java
index 67db59fb15d..ad12609dba6 100644
--- a/src/java.desktop/share/classes/java/awt/geom/QuadIterator.java
+++ b/src/java.desktop/share/classes/java/awt/geom/QuadIterator.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 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
@@ -90,7 +90,7 @@ class QuadIterator implements PathIterator {
       */
      public int currentSegment(float[] coords) {
          if (isDone()) {
-            throw new NoSuchElementException("quad iterator iterator
out of bounds");
+            throw new NoSuchElementException("quad iterator is out of bounds");
          }
          int type;
          if (index == 0) {
@@ -130,7 +130,7 @@ class QuadIterator implements PathIterator {
       */
      public int currentSegment(double[] coords) {
          if (isDone()) {
-            throw new NoSuchElementException("quad iterator iterator
out of bounds");
+            throw new NoSuchElementException("quad iterator is out of bounds");
          }
          int type;
          if (index == 0) {
diff --git a/src/java.desktop/share/classes/java/awt/image/ByteLookupTable.java
b/src/java.desktop/share/classes/java/awt/image/ByteLookupTable.java
index 01bebc12ee2..09c1f4f583d 100644
--- a/src/java.desktop/share/classes/java/awt/image/ByteLookupTable.java
+++ b/src/java.desktop/share/classes/java/awt/image/ByteLookupTable.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -59,7 +59,7 @@ public class ByteLookupTable extends LookupTable {
       *        before indexing into the arrays
       * @param data an array of byte arrays representing a lookup
       *        table for each band
-     * @throws IllegalArgumentException if {@code offset} is
+     * @throws IllegalArgumentException if {@code offset}
       *         is less than 0 or if the length of {@code data}
       *         is less than 1
       */
@@ -83,7 +83,7 @@ public class ByteLookupTable extends LookupTable {
       * @param offset the value subtracted from the input values
       *        before indexing into the array
       * @param data an array of bytes
-     * @throws IllegalArgumentException if {@code offset} is
+     * @throws IllegalArgumentException if {@code offset}
       *         is less than 0 or if the length of {@code data}
       *         is less than 1
       */
diff --git a/src/java.desktop/share/classes/java/awt/image/PixelGrabber.java
b/src/java.desktop/share/classes/java/awt/image/PixelGrabber.java
index 3855316d986..fae7efe0969 100644
--- a/src/java.desktop/share/classes/java/awt/image/PixelGrabber.java
+++ b/src/java.desktop/share/classes/java/awt/image/PixelGrabber.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -285,7 +285,7 @@ public class PixelGrabber implements ImageConsumer {

      /**
       * Get the width of the pixel buffer (after adjusting for image width).
-     * If no width was specified for the rectangle of pixels to grab then
+     * If no width was specified for the rectangle of pixels to grab
       * then this information will only be available after the image has
       * delivered the dimensions.
       * @return the final width used for the pixel buffer or -1 if the width
@@ -298,7 +298,7 @@ public class PixelGrabber implements ImageConsumer {

      /**
       * Get the height of the pixel buffer (after adjusting for image height).
-     * If no width was specified for the rectangle of pixels to grab then
+     * If no width was specified for the rectangle of pixels to grab
       * then this information will only be available after the image has
       * delivered the dimensions.
       * @return the final height used for the pixel buffer or -1 if the height
diff --git 
a/src/java.desktop/share/classes/java/awt/image/SinglePixelPackedSampleModel.java
b/src/java.desktop/share/classes/java/awt/image/SinglePixelPackedSampleModel.java
index dd9b898e46f..77182a4cacb 100644
--- 
a/src/java.desktop/share/classes/java/awt/image/SinglePixelPackedSampleModel.java
+++ 
b/src/java.desktop/share/classes/java/awt/image/SinglePixelPackedSampleModel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -39,7 +39,7 @@ import java.util.Arrays;

  /**
   *  This class represents pixel data packed such that the N samples which make
- *  up a single pixel are stored in a single data array element, and each data
+ *  up a single pixel are stored in a single data array element, and each
   *  data array element holds samples for only one pixel.
   *  This class supports
   *  {@link DataBuffer#TYPE_BYTE TYPE_BYTE},
diff --git 
a/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java
b/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java
index aa7686c368e..f2af7929f0a 100644
--- 
a/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java
+++ 
b/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2014, 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
@@ -543,7 +543,7 @@ public class ParameterBlock implements Cloneable,
Serializable {
      /**
       * Gets a parameter as an object.
       * @param index the index of the parameter to get
-     * @return an {@code Object} representing the
+     * @return an {@code Object} representing
       *         the parameter at the specified index
       *         into the {@code parameters}
       *         {@code Vector}.
diff --git a/src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java
b/src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java
index bf31082fe92..31fb1a5ecf5 100644
--- a/src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java
+++ b/src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 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
@@ -128,7 +128,7 @@ public interface TaskbarPeer {
      /**
       * Tests support of {@code Feature} on current platform.
       * @param f feature to test
-     * @return true if feature supported supported
+     * @return true if feature supported
       */
      default public boolean isSupported(Feature f) { return false; }
  }
diff --git a/src/java.desktop/share/classes/java/beans/EventHandler.java
b/src/java.desktop/share/classes/java/beans/EventHandler.java
index 1ab720f7555..fad729e5db0 100644
--- a/src/java.desktop/share/classes/java/beans/EventHandler.java
+++ b/src/java.desktop/share/classes/java/beans/EventHandler.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -552,7 +552,7 @@ public class EventHandler implements InvocationHandler {
       * the general version of create} for a complete description of
       * the {@code action} and {@code eventPropertyName} parameters.
       * <p>
-     * To create an {@code ActionListener} that sets the
+     * To create an {@code ActionListener} that sets
       * the text of a {@code JLabel} to the text value of
       * the {@code JTextField} source of the incoming event,
       * you can use the following code:
diff --git 
a/src/java.desktop/share/classes/javax/imageio/metadata/IIOInvalidTreeException.java
b/src/java.desktop/share/classes/javax/imageio/metadata/IIOInvalidTreeException.java
index 772ca3f11dc..f8d4e059252 100644
--- 
a/src/java.desktop/share/classes/javax/imageio/metadata/IIOInvalidTreeException.java
+++ 
b/src/java.desktop/share/classes/javax/imageio/metadata/IIOInvalidTreeException.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -33,7 +33,7 @@ import org.w3c.dom.Node;
   * by an {@code IIOMetadata} object to parse a tree of
   * {@code IIOMetadataNode}s fails.  The node that led to the
   * parsing error may be stored.  As with any parsing error, the actual
- * error may occur at a different point that that where it is
+ * error may occur at a different point that where it is
   * detected.  The node returned by {@code getOffendingNode}
   * should merely be considered as a clue to the actual nature of the
   * problem.
diff --git 
a/src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html
b/src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html
index f88555f7881..740edc021f5 100644
--- 
a/src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html
+++ 
b/src/java.desktop/share/classes/javax/imageio/metadata/doc-files/tiff_metadata.html
@@ -5,7 +5,7 @@
      <title>TIFF Metadata Format Specification and Usage Notes</title>
  </head>
  <!--
-Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+Copyright (c) 2015, 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
@@ -647,7 +647,7 @@ If prediction is so requested but the image does not have
  <ul>
  <li><code>PhotometricInterpretation</code> if not present.</li>
  <li><code>PlanarConfiguration</code> if this field is present with value
-<code>Planar</code> is is reset to <code>Chunky</code>.</li>
+<code>Planar</code> is reset to <code>Chunky</code>.</li>
  <li><code>Compression</code> always.</li>
  <li><code>BitsPerSample</code> if the image is not bilevel.</li>
  <li><code>SamplesPerPixel</code> always.</li>
diff --git 
a/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
b/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
index 4b7437681e9..6831a303a30 100644
--- a/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
+++ b/src/java.desktop/share/classes/javax/imageio/spi/ServiceRegistry.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -254,7 +254,7 @@ public class ServiceRegistry {
       * @param <T> the type of the provider.
       *
       * @return true if no provider of the same class was previously
-     * registered in the same category category.
+     * registered in the same category.
       *
       * @exception IllegalArgumentException if {@code provider} is
       * {@code null}.
@@ -356,7 +356,7 @@ public class ServiceRegistry {
       * @param <T> the type of the provider.
       *
       * @return {@code true} if the provider was previously
-     * registered in the same category category,
+     * registered in the same category,
       * {@code false} otherwise.
       *
       * @exception IllegalArgumentException if {@code provider} is
diff --git a/src/java.desktop/share/classes/javax/sound/midi/Synthesizer.java
b/src/java.desktop/share/classes/javax/sound/midi/Synthesizer.java
index c353fb7f390..6ed882a9a49 100644
--- a/src/java.desktop/share/classes/javax/sound/midi/Synthesizer.java
+++ b/src/java.desktop/share/classes/javax/sound/midi/Synthesizer.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -52,7 +52,7 @@ package javax.sound.midi;
   * {@link #isSoundbankSupported(Soundbank) isSoundbankSupported} method of
   * {@code Synthesizer}.
   * <p>
- * "Loading" an instrument means that that instrument becomes available for
+ * "Loading" an instrument means that this instrument becomes available for
   * synthesizing notes. The instrument is loaded into the bank and program
   * location specified by its {@code Patch} object. Loading does not 
necessarily
   * mean that subsequently played notes will immediately have the sound of this
diff --git 
a/src/java.desktop/share/classes/javax/swing/DefaultListSelectionModel.java
b/src/java.desktop/share/classes/javax/swing/DefaultListSelectionModel.java
index 312eec84051..df487ffccfa 100644
--- a/src/java.desktop/share/classes/javax/swing/DefaultListSelectionModel.java
+++ b/src/java.desktop/share/classes/javax/swing/DefaultListSelectionModel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2015, 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
@@ -819,7 +819,7 @@ public class DefaultListSelectionModel implements
ListSelectionModel, Cloneable,
       * Sets the lead selection index, ensuring that values between the
       * anchor and the new lead are either all selected or all deselected.
       * If the value at the anchor index is selected, first clear all the
-     * values in the range [anchor, oldLeadIndex], then select all the values
+     * values in the range [anchor, oldLeadIndex], then select all the
       * values in the range [anchor, newLeadIndex], where oldLeadIndex
is the old
       * leadIndex and newLeadIndex is the new one.
       * <p>
diff --git a/src/java.desktop/share/classes/javax/swing/FocusManager.java
b/src/java.desktop/share/classes/javax/swing/FocusManager.java
index c23f4836c3d..a75d71738a9 100644
--- a/src/java.desktop/share/classes/javax/swing/FocusManager.java
+++ b/src/java.desktop/share/classes/javax/swing/FocusManager.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2013, 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
@@ -90,7 +90,7 @@ public abstract class FocusManager extends
DefaultKeyboardFocusManager {
       * <p>
       * If a <code>SecurityManager</code> is installed,
       * the calling thread must be granted the <code>AWTPermission</code>
-     * "replaceKeyboardFocusManager" in order to replace the
+     * "replaceKeyboardFocusManager" in order to replace
       * the current <code>KeyboardFocusManager</code>.
       * If this permission is not granted,
       * this method will throw a <code>SecurityException</code>,
diff --git a/src/java.desktop/share/classes/javax/swing/JLabel.java
b/src/java.desktop/share/classes/javax/swing/JLabel.java
index 128e38e63e2..8e248aba789 100644
--- a/src/java.desktop/share/classes/javax/swing/JLabel.java
+++ b/src/java.desktop/share/classes/javax/swing/JLabel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -575,7 +575,7 @@ public class JLabel extends JComponent implements
SwingConstants, Accessible
       *
       * @param key the property value to check
       * @param message the IllegalArgumentException detail message
-     * @return the key value if {@code key} is a a legal value for the
+     * @return the key value if {@code key} is a legal value for the
       *         horizontalAlignment properties
       * @exception IllegalArgumentException if key isn't LEFT, CENTER, RIGHT,
       * LEADING or TRAILING.
diff --git a/src/java.desktop/share/classes/javax/swing/JLayeredPane.java
b/src/java.desktop/share/classes/javax/swing/JLayeredPane.java
index 93f75d8b84e..c5a15c92cbd 100644
--- a/src/java.desktop/share/classes/javax/swing/JLayeredPane.java
+++ b/src/java.desktop/share/classes/javax/swing/JLayeredPane.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2017, 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
@@ -469,7 +469,7 @@ public class JLayeredPane extends JComponent
implements Accessible {
       * @param c  the Component to check
       * @return an int giving the component's position, where 0 is the
       *         topmost position and the highest index value = the count
-     *         count of components at that layer, minus 1
+     *         of components at that layer, minus 1
       *
       * @see #getComponentCountInLayer
       */
diff --git a/src/java.desktop/share/classes/javax/swing/JMenuBar.java
b/src/java.desktop/share/classes/javax/swing/JMenuBar.java
index 3763251dd28..ccb99a051dd 100644
--- a/src/java.desktop/share/classes/javax/swing/JMenuBar.java
+++ b/src/java.desktop/share/classes/javax/swing/JMenuBar.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -208,7 +208,7 @@ public class JMenuBar extends JComponent
implements Accessible,MenuElement
       *
       * @param index  an integer giving the position in the menu bar, where
       *               0 is the first position
-     * @return the <code>JMenu</code> at that position, or <code>null</code> if
+     * @return the <code>JMenu</code> at that position, or <code>null</code>
       *          if there is no <code>JMenu</code> at that position (ie. if
       *          it is a <code>JMenuItem</code>)
       */
@@ -286,7 +286,7 @@ public class JMenuBar extends JComponent
implements Accessible,MenuElement
      }

      /**
-     * Sets the currently selected component, producing a
+     * Sets the currently selected component, producing
       * a change to the selection model.
       *
       * @param sel the <code>Component</code> to select
diff --git a/src/java.desktop/share/classes/javax/swing/JOptionPane.java
b/src/java.desktop/share/classes/javax/swing/JOptionPane.java
index 7faa087ca83..09c292e8b71 100644
--- a/src/java.desktop/share/classes/javax/swing/JOptionPane.java
+++ b/src/java.desktop/share/classes/javax/swing/JOptionPane.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2017, 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
@@ -1305,7 +1305,7 @@ public class JOptionPane extends JComponent
implements Accessible
              /* Since all input will be blocked until this dialog is dismissed,
               * make sure its parent containers are visible first
(this component
               * is tested below).  This is necessary for JApplets, because
-             * because an applet normally isn't made visible until after its
+             * an applet normally isn't made visible until after its
               * start() method returns -- if this method is called from 
start(),
               * the applet will appear to hang while an invisible modal frame
               * waits for input.
@@ -1449,7 +1449,7 @@ public class JOptionPane extends JComponent
implements Accessible
          /* Since all input will be blocked until this dialog is dismissed,
           * make sure its parent containers are visible first (this component
           * is tested below).  This is necessary for JApplets, because
-         * because an applet normally isn't made visible until after its
+         * an applet normally isn't made visible until after its
           * start() method returns -- if this method is called from start(),
           * the applet will appear to hang while an invisible modal frame
           * waits for input.
diff --git a/src/java.desktop/share/classes/javax/swing/JPopupMenu.java
b/src/java.desktop/share/classes/javax/swing/JPopupMenu.java
index 9427677c1c1..78a86bfd7a8 100644
--- a/src/java.desktop/share/classes/javax/swing/JPopupMenu.java
+++ b/src/java.desktop/share/classes/javax/swing/JPopupMenu.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -894,7 +894,7 @@ public class JPopupMenu extends JComponent
implements Accessible,MenuElement {

      /**
       * Sets the invoker of this popup menu -- the component in which
-     * the popup menu menu is to be displayed.
+     * the popup menu is to be displayed.
       *
       * @param invoker the <code>Component</code> in which the popup
       *          menu is displayed
diff --git a/src/java.desktop/share/classes/javax/swing/JProgressBar.java
b/src/java.desktop/share/classes/javax/swing/JProgressBar.java
index 828bb23cc87..897f6375096 100644
--- a/src/java.desktop/share/classes/javax/swing/JProgressBar.java
+++ b/src/java.desktop/share/classes/javax/swing/JProgressBar.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2015, 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
@@ -618,7 +618,7 @@ public class JProgressBar extends JComponent
implements SwingConstants, Accessib
      }


-    /* We pass each Change event to the listeners with the
+    /* We pass each Change event to the listeners with
       * the progress bar as the event source.
       * <p>
       * <strong>Warning:</strong>
diff --git a/src/java.desktop/share/classes/javax/swing/JSlider.java
b/src/java.desktop/share/classes/javax/swing/JSlider.java
index 613f7bdacf9..51518d57027 100644
--- a/src/java.desktop/share/classes/javax/swing/JSlider.java
+++ b/src/java.desktop/share/classes/javax/swing/JSlider.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2015, 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
@@ -346,7 +346,7 @@ public class JSlider extends JComponent implements
SwingConstants, Accessible {


      /**
-     * We pass Change events along to the listeners with the
+     * We pass Change events along to the listeners with
       * the slider (instead of the model itself) as the event source.
       */
      private class ModelListener implements ChangeListener, Serializable {
diff --git a/src/java.desktop/share/classes/javax/swing/JSpinner.java
b/src/java.desktop/share/classes/javax/swing/JSpinner.java
index d275d60f5e1..e2bfe79ed5e 100644
--- a/src/java.desktop/share/classes/javax/swing/JSpinner.java
+++ b/src/java.desktop/share/classes/javax/swing/JSpinner.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -380,7 +380,7 @@ public class JSpinner extends JComponent
implements Accessible


      /**
-     * We pass <code>Change</code> events along to the listeners with the
+     * We pass <code>Change</code> events along to the listeners with
       * the slider (instead of the model itself) as the event source.
       */
      private class ModelListener implements ChangeListener, Serializable {
@@ -669,7 +669,7 @@ public class JSpinner extends JComponent
implements Accessible
           * <code>null</code> if none of the ancestors are a
           * <code>JSpinner</code>.
           * Typically the editor's parent is a <code>JSpinner</code> however
-         * subclasses of <code>JSpinner</code> may override the
+         * subclasses of <code>JSpinner</code> may override
           * the <code>createEditor</code> method and insert one or
more containers
           * between the <code>JSpinner</code> and it's editor.
           *
diff --git a/src/java.desktop/share/classes/javax/swing/JTabbedPane.java
b/src/java.desktop/share/classes/javax/swing/JTabbedPane.java
index e22cce9fab1..c0f3199eea7 100644
--- a/src/java.desktop/share/classes/javax/swing/JTabbedPane.java
+++ b/src/java.desktop/share/classes/javax/swing/JTabbedPane.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -2383,7 +2383,7 @@ public class JTabbedPane extends JComponent
           * - non-null component: use indexOfComponent
           * - null component and non-null tabComponent: use indexOfTabComponent
           *
-         * Note: It's valid to have have a titled tab with a null
component, e.g.
+         * Note: It's valid to have a titled tab with a null component, e.g.
           *   myPane.add("my title", null);
           * but it's only useful to have one of those because
indexOfComponent(null)
           * will find the first one.
diff --git a/src/java.desktop/share/classes/javax/swing/JTable.java
b/src/java.desktop/share/classes/javax/swing/JTable.java
index 9c5fd7698d0..5082a8b1902 100644
--- a/src/java.desktop/share/classes/javax/swing/JTable.java
+++ b/src/java.desktop/share/classes/javax/swing/JTable.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -337,7 +337,7 @@ public class JTable extends JComponent implements
TableModelListener, Scrollable
       */
      /*
       * If true, both a row selection and a column selection
-     * can be non-empty at the same time, the selected cells are the
+     * can be non-empty at the same time, the selected cells are
       * the cells whose row and column are both selected.
       */
      protected boolean           cellSelectionEnabled;
diff --git a/src/java.desktop/share/classes/javax/swing/JTree.java
b/src/java.desktop/share/classes/javax/swing/JTree.java
index 01134ec62ed..402c6009fa6 100644
--- a/src/java.desktop/share/classes/javax/swing/JTree.java
+++ b/src/java.desktop/share/classes/javax/swing/JTree.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -4277,7 +4277,7 @@ public class JTree extends JComponent implements
Scrollable, Accessible
          }

          /**
-         * Tree Model structure change change notification.
+         * Tree Model structure change notification.
           *
           * @param e  a Tree Model event
           */
diff --git 
a/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java
b/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java
index a98dea117a5..4d05c571ade 100644
--- a/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java
+++ b/src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2011, 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
@@ -46,7 +46,7 @@ public interface MutableComboBoxModel<E> extends
ComboBoxModel<E> {

      /**
       * Removes an item from the model. The implementation of this method 
should
-     * should notify all registered <code>ListDataListener</code>s that the
+     * notify all registered <code>ListDataListener</code>s that the
       * item has been removed.
       *
       * @param obj the <code>Object</code> to be removed
diff --git a/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java
b/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java
index 8733d5b3cfe..7c0eea7167f 100644
--- a/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java
+++ b/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2016, 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
@@ -556,7 +556,7 @@ public class ProgressMonitor implements Accessible
           *
           * For other AWT and Swing classes, the inner class that implements
           * accessibility for the class extends the inner class that implements
-         * implements accessibility for the super class.
AccessibleProgressMonitor
+         * accessibility for the super class. AccessibleProgressMonitor
           * cannot extend AccessibleJOptionPane and must therefore
delegate calls
           * to the AccessibleJOptionPane.
           */
diff --git a/src/java.desktop/share/classes/javax/swing/UIDefaults.java
b/src/java.desktop/share/classes/javax/swing/UIDefaults.java
index c9b1d2b0142..ee6297113da 100644
--- a/src/java.desktop/share/classes/javax/swing/UIDefaults.java
+++ b/src/java.desktop/share/classes/javax/swing/UIDefaults.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2017, 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
@@ -1061,7 +1061,7 @@ public class UIDefaults extends Hashtable<Object,Object>
       * used to delay loading of the Class for the instance to be created.
       * It also avoids creation of an anonymous inner class for the
       * <code>LazyValue</code>
-     * subclass.  Both of these improve performance at the time that a
+     * subclass.  Both of these improve performance at the time that
       * a Look and Feel is loaded, at the cost of a slight performance
       * reduction the first time <code>createValue</code> is called
       * (since Reflection APIs are used).
diff --git 
a/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java
b/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java
index 907fd1307b8..b9f734f0ab9 100644
--- a/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java
+++ b/src/java.desktop/share/classes/javax/swing/event/ListSelectionEvent.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2014, 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
@@ -30,7 +30,7 @@ import javax.swing.*;


  /**
- * An event that characterizes a change in selection. The change is
limited to a
+ * An event that characterizes a change in selection. The change is limited to
   * a single inclusive interval. The selection of at least one index within the
   * range will have changed. A decent {@code ListSelectionModel} implementation
   * will keep the range as small as possible. {@code
ListSelectionListeners} will
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java
index 33f155a3bd2..a180a3f8ca0 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2014, 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
@@ -114,7 +114,7 @@ public class BasicArrowButton extends JButton
implements SwingConstants
           * Sets the direction of the arrow.
           *
           * @param direction the direction of the arrow; one of
-         *        of {@code SwingConstants.NORTH},
+         *        {@code SwingConstants.NORTH},
           *        {@code SwingConstants.SOUTH},
           *        {@code SwingConstants.EAST} or {@code SwingConstants.WEST}
           */
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
index 26c4b6f73fe..bcfc5876cfd 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2014, 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
@@ -426,7 +426,7 @@ public class BasicGraphicsUtils
       * @param c the component that will display the string, may be null
       * @param g the graphics context, must not be null
       * @param string the string to display, may be null
-     * @param underlinedIndex index of a a char value (Unicode code unit)
+     * @param underlinedIndex index of a char value (Unicode code unit)
       *        in the string to underline
       * @param x the x coordinate to draw the text at
       * @param y the y coordinate to draw the text at
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java
index 4d9163e0377..3fc02fd3bf1 100644
--- a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java
+++ b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -131,7 +131,7 @@ public class BasicListUI extends ListUI
       */
      private int columnCount;
      /**
-     * Preferred height to make the list, this is only used if the
+     * Preferred height to make the list, this is only used if
       * the list is layed out horizontally.
       */
      private int preferredHeight;
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
index b3a12edb5fb..bfec42a3710 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2015, 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
@@ -1480,7 +1480,7 @@ public class BasicOptionPaneUI extends OptionPaneUI {

      /**
       * A JTextField that allows you to specify an array of KeyStrokes that
-     * that will have their bindings processed regardless of whether or
+     * will have their bindings processed regardless of whether or
       * not they are registered on the JTextField. This is used as we really
       * want the ActionListener to be notified so that we can push the
       * change to the JOptionPane, but we also want additional bindings
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPasswordFieldUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPasswordFieldUI.java
index 7f27d6ee0f5..7a9c51f10d6 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPasswordFieldUI.java
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicPasswordFieldUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2006, 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
@@ -90,7 +90,7 @@ public class BasicPasswordFieldUI extends BasicTextFieldUI {
      /**
       * Create the action map for Password Field.  This map provides
       * same actions for double mouse click and
-     * and for triple mouse click (see bug 4231444).
+     * for triple mouse click (see bug 4231444).
       */

      ActionMap createActionMap() {
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
index bc901f7f3a2..9d5c352fbaf 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2016, 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
@@ -704,7 +704,7 @@ public class BasicScrollBarUI
       * hidden.
       * <p>
       * <b>Warning </b>: the value returned by this method should not be
-     * be modified, it's a shared static constant.
+     * modified, it's a shared static constant.
       *
       * @return The smallest acceptable size for the thumb.
       * @see #getMaximumThumbSize
@@ -719,7 +719,7 @@ public class BasicScrollBarUI
       * return the same value.
       * <p>
       * <b>Warning </b>: the value returned by this method should not be
-     * be modified, it's a shared static constant.
+     * modified, it's a shared static constant.
       *
       * @return The largest acceptable size for the thumb.
       * @see #getMinimumThumbSize
@@ -1028,7 +1028,7 @@ public class BasicScrollBarUI
       * Return the current size/location of the thumb.
       * <p>
       * <b>Warning </b>: the value returned by this method should not be
-     * be modified, it's a reference to the actual rectangle, not a copy.
+     * modified, it's a reference to the actual rectangle, not a copy.
       *
       * @return The current size/location of the thumb.
       * @see #setThumbBounds
@@ -1045,7 +1045,7 @@ public class BasicScrollBarUI
       * laid out (validated).
       * <p>
       * <b>Warning </b>: the value returned by this method should not be
-     * be modified, it's a reference to the actual rectangle, not a copy.
+     * modified, it's a reference to the actual rectangle, not a copy.
       *
       * @return the current bounds of the scrollbar track
       * @see #layoutContainer
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextPaneUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextPaneUI.java
index 1d94e9c5651..2bca1764a42 100644
--- a/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextPaneUI.java
+++ b/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextPaneUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2014, 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
@@ -87,7 +87,7 @@ public class BasicTextPaneUI extends BasicEditorPaneUI {
       * on the associated JTextComponent.  This is a hook
       * which UI implementations may change to reflect how the
       * UI displays bound properties of JTextComponent subclasses.
-     * If the font, foreground or document has changed, the
+     * If the font, foreground or document has changed,
       * the appropriate property is set in the default style of
       * the document.
       *
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTheme.java
b/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTheme.java
index 3bed65d6f03..e2a534e8439 100644
--- a/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTheme.java
+++ b/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTheme.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2006, 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
@@ -35,7 +35,7 @@ import javax.swing.*;
   * {@code MetalTheme} is abstract, see {@code DefaultMetalTheme} and
   * {@code OceanTheme} for concrete implementations.
   * <p>
- * {@code MetalLookAndFeel} maintains the current theme that the
+ * {@code MetalLookAndFeel} maintains the current theme that
   * the {@code ComponentUI} implementations for metal use. Refer to
   * {@link MetalLookAndFeel#setCurrentTheme
   * MetalLookAndFeel.setCurrentTheme(MetalTheme)} for details on changing
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java
b/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java
index e053fe3d54c..32d9f57d2b8 100644
--- a/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java
+++ b/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -332,7 +332,7 @@ class SynthParser extends DefaultHandler {

      /**
       * Returns an object created with id=key. If the object is not of
-     * type type, this will throw an exception.
+     * that type, this will throw an exception.
       */
      private Object lookup(String key, Class<?> type) throws SAXException {
          Object value;
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
b/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
index d4f8aaca373..cd4f5e416cd 100644
--- a/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
+++ b/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthTextPaneUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -108,7 +108,7 @@ public class SynthTextPaneUI extends SynthEditorPaneUI {
       * on the associated JTextComponent.  This is a hook
       * which UI implementations may change to reflect how the
       * UI displays bound properties of JTextComponent subclasses.
-     * If the font, foreground or document has changed, the
+     * If the font, foreground or document has changed,
       * the appropriate property is set in the default style of
       * the document.
       *
diff --git 
a/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html
b/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html
index 3109bd3a0f7..f688dcd2f8e 100644
--- 
a/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html
+++ 
b/src/java.desktop/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html
@@ -4,7 +4,7 @@
    <meta charset="utf-8"/>
    <title>Synth File Format</title>
  <!--
- Copyright (c) 1998, 2018, 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
@@ -854,7 +854,7 @@ div.example {
      used for all directions.</dd>
        <dt><a id="imagePainter.path"><samp>path</samp></a></dt>
        <dd>Path to the image. Path to the image.  If SynthLookAndFeel.load is
-    passed a Class this will use the Class method getResource (with with the
+    passed a Class this will use the Class method getResource (with the
      Class suplied to the load method). If load is passed a URL this
will use the
      URL constructor URL(context, path) to resolve the path.</dd>
        <dt><a id="imagePainter.sourceInsets"><samp>sourceInsets</samp></a></dt>
diff --git 
a/src/java.desktop/share/classes/javax/swing/table/DefaultTableCellRenderer.java
b/src/java.desktop/share/classes/javax/swing/table/DefaultTableCellRenderer.java
index 8b9df51d10d..42f333285c7 100644
--- 
a/src/java.desktop/share/classes/javax/swing/table/DefaultTableCellRenderer.java
+++ 
b/src/java.desktop/share/classes/javax/swing/table/DefaultTableCellRenderer.java
@@ -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
@@ -265,7 +265,7 @@ public class DefaultTableCellRenderer extends JLabel

      /*
       * The following methods are overridden as a performance measure to
-     * to prune code-paths are often called in the case of renders
+     * prune code-paths are often called in the case of renders
       * but which we know are unnecessary.  Great care should be taken
       * when writing your own renderer to weigh the benefits and
       * drawbacks of overriding methods like these.
diff --git a/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java
b/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java
index 846c767eb19..a3a4d58060b 100644
--- a/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java
+++ b/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2016, 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
@@ -258,7 +258,7 @@ public class JTableHeader extends JComponent
implements TableColumnModelListener

      /**
       * Returns the column's horizontal distance from its original
-     * position, if and only if, a drag is in process. Otherwise, the
+     * position, if and only if, a drag is in process. Otherwise,
       * the return value is meaningless.
       *
       * @return  the column's horizontal distance from its original
diff --git 
a/src/java.desktop/share/classes/javax/swing/table/TableCellRenderer.java
b/src/java.desktop/share/classes/javax/swing/table/TableCellRenderer.java
index 585d9221482..1e96675b93a 100644
--- a/src/java.desktop/share/classes/javax/swing/table/TableCellRenderer.java
+++ b/src/java.desktop/share/classes/javax/swing/table/TableCellRenderer.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2014, 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
@@ -41,7 +41,7 @@ public interface TableCellRenderer {
       * Returns the component used for drawing the cell.  This method is
       * used to configure the renderer appropriately before drawing.
       * <p>
-     * The <code>TableCellRenderer</code> is also responsible for rendering the
+     * The <code>TableCellRenderer</code> is also responsible for rendering
       * the cell representing the table's current DnD drop location if
       * it has one. If this renderer cares about rendering
       * the DnD drop location, it should query the table directly to
diff --git a/src/java.desktop/share/classes/javax/swing/text/AsyncBoxView.java
b/src/java.desktop/share/classes/javax/swing/text/AsyncBoxView.java
index a9e4c58fbaa..0495debdfa7 100644
--- a/src/java.desktop/share/classes/javax/swing/text/AsyncBoxView.java
+++ b/src/java.desktop/share/classes/javax/swing/text/AsyncBoxView.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -199,12 +199,12 @@ public class AsyncBoxView extends View {

      /**
       * Fetch the object representing the layout state of
-     * of the child at the given index.
+     * the child at the given index.
       *
       * @param index the child index.  This should be a
       *   value &gt;= 0 and &lt; getViewCount().
       * @return the object representing the layout state of
-     * of the child at the given index
+     * the child at the given index
       */
      protected ChildState getChildState(int index) {
          synchronized(stats) {
diff --git a/src/java.desktop/share/classes/javax/swing/text/DefaultCaret.java
b/src/java.desktop/share/classes/javax/swing/text/DefaultCaret.java
index b1b636bc9e9..a8117e5d235 100644
--- a/src/java.desktop/share/classes/javax/swing/text/DefaultCaret.java
+++ b/src/java.desktop/share/classes/javax/swing/text/DefaultCaret.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2017, 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
@@ -223,7 +223,7 @@ public class DefaultCaret extends Rectangle
implements Caret, FocusListener, Mou

      /**
       * Gets the text editor component that this caret is
-     * is bound to.
+     * bound to.
       *
       * @return the component
       */
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/DefaultFormatterFactory.java
b/src/java.desktop/share/classes/javax/swing/text/DefaultFormatterFactory.java
index 86cce58755d..ff0433713cb 100644
--- 
a/src/java.desktop/share/classes/javax/swing/text/DefaultFormatterFactory.java
+++ 
b/src/java.desktop/share/classes/javax/swing/text/DefaultFormatterFactory.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -210,7 +210,7 @@ public class DefaultFormatterFactory extends
JFormattedTextField.AbstractFormatt
       * Sets the <code>JFormattedTextField.AbstractFormatter</code> to use if
       * the <code>JFormattedTextField</code> is not being edited and either
       * the value is not-null, or the value is null and a null formatter has
-     * has not been specified.
+     * not been specified.
       *
       * @param atf JFormattedTextField.AbstractFormatter to use when the
       *            JFormattedTextField does not have focus
@@ -223,7 +223,7 @@ public class DefaultFormatterFactory extends
JFormattedTextField.AbstractFormatt
       * Returns the <code>JFormattedTextField.AbstractFormatter</code> to use
       * if the <code>JFormattedTextField</code> is not being edited and either
       * the value is not-null, or the value is null and a null formatter has
-     * has not been specified.
+     * not been specified.
       *
       * @return JFormattedTextField.AbstractFormatter to use when the
       *         JFormattedTextField does not have focus
@@ -236,7 +236,7 @@ public class DefaultFormatterFactory extends
JFormattedTextField.AbstractFormatt
       * Sets the <code>JFormattedTextField.AbstractFormatter</code> to use if
       * the <code>JFormattedTextField</code> is being edited and either
       * the value is not-null, or the value is null and a null formatter has
-     * has not been specified.
+     * not been specified.
       *
       * @param atf JFormattedTextField.AbstractFormatter to use when the
       *            component has focus
@@ -249,7 +249,7 @@ public class DefaultFormatterFactory extends
JFormattedTextField.AbstractFormatt
       * Returns the <code>JFormattedTextField.AbstractFormatter</code> to use
       * if the <code>JFormattedTextField</code> is being edited and either
       * the value is not-null, or the value is null and a null formatter has
-     * has not been specified.
+     * not been specified.
       *
       * @return JFormattedTextField.AbstractFormatter to use when the
       *         component has focus
diff --git a/src/java.desktop/share/classes/javax/swing/text/FlowView.java
b/src/java.desktop/share/classes/javax/swing/text/FlowView.java
index fb8ed7ea728..560c739119f 100644
--- a/src/java.desktop/share/classes/javax/swing/text/FlowView.java
+++ b/src/java.desktop/share/classes/javax/swing/text/FlowView.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -42,7 +42,7 @@ import javax.swing.SizeRequirements;
   * <li>Constraints for the strategy to work against.
   * <li>A physical structure, that represents the flow.
   * The children of this view are where the pieces of
- * of the logical views are placed to create the flow.
+ * the logical views are placed to create the flow.
   * </ul>
   *
   * @author  Timothy Prinzing
@@ -117,12 +117,12 @@ public abstract class FlowView extends BoxView {
      }

      /**
-     * Create a View that should be used to hold a
+     * Create a View that should be used to hold
       * a rows worth of children in a flow.  This is
       * called by the FlowStrategy when new children
       * are added or removed (i.e. rows are added or
       * removed) in the process of updating the flow.
-     * @return a View that should be used to hold a
+     * @return a View that should be used to hold
       * a rows worth of children in a flow
       */
      protected abstract View createRow();
@@ -175,7 +175,7 @@ public abstract class FlowView extends BoxView {
      /**
       * Lays out the children.  If the span along the flow
       * axis has changed, layout is marked as invalid which
-     * which will cause the superclass behavior to recalculate
+     * will cause the superclass behavior to recalculate
       * the layout along the box axis.  The FlowStrategy.layout
       * method will be called to rebuild the flow rows as
       * appropriate.  If the height of this view changes
diff --git a/src/java.desktop/share/classes/javax/swing/text/GapContent.java
b/src/java.desktop/share/classes/javax/swing/text/GapContent.java
index 282e08f78b2..e1469f48a29 100644
--- a/src/java.desktop/share/classes/javax/swing/text/GapContent.java
+++ b/src/java.desktop/share/classes/javax/swing/text/GapContent.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2015, 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
@@ -49,7 +49,7 @@ import java.lang.ref.ReferenceQueue;
   * The positions tracking change are also generally cheap to
   * maintain.  The Position implementations (marks) store the array
   * index and can easily calculate the sequential position from
- * the current gap location.  Changes only require update to the
+ * the current gap location.  Changes only require update to
   * the marks between the old and new gap boundaries when the gap
   * is moved, so generally updating the marks is pretty cheap.
   * The marks are stored sorted so they can be located quickly
diff --git a/src/java.desktop/share/classes/javax/swing/text/JTextComponent.java
b/src/java.desktop/share/classes/javax/swing/text/JTextComponent.java
index 1b772971b6d..ae511d9f2e7 100644
--- a/src/java.desktop/share/classes/javax/swing/text/JTextComponent.java
+++ b/src/java.desktop/share/classes/javax/swing/text/JTextComponent.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -2940,7 +2940,7 @@ public abstract class JTextComponent extends
JComponent implements Scrollable, A
          }

         /**
-         * IndexedSegment extends Segment adding the offset into the
+         * IndexedSegment extends Segment adding the offset into
           * the model the <code>Segment</code> was asked for.
           */
          private class IndexedSegment extends Segment {
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/NumberFormatter.java
b/src/java.desktop/share/classes/javax/swing/text/NumberFormatter.java
index b3db8fceb03..8c60869032c 100644
--- a/src/java.desktop/share/classes/javax/swing/text/NumberFormatter.java
+++ b/src/java.desktop/share/classes/javax/swing/text/NumberFormatter.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -65,7 +65,7 @@ import sun.swing.SwingUtilities2;
   * <code>NumberFormatter</code> provides slightly different behavior to
   * <code>stringToValue</code> than that of its superclass. If you have
   * specified a Class for values, {@link #setValueClass}, that is one of
- * of <code>Integer</code>, <code>Long</code>, <code>Float</code>,
+ * <code>Integer</code>, <code>Long</code>, <code>Float</code>,
   * <code>Double</code>, <code>Byte</code> or <code>Short</code> and
   * the Format's <code>parseObject</code> returns an instance of
   * <code>Number</code>, the corresponding instance of the value class
diff --git a/src/java.desktop/share/classes/javax/swing/text/ParagraphView.java
b/src/java.desktop/share/classes/javax/swing/text/ParagraphView.java
index f8d0e390cb2..5d8af90f555 100644
--- a/src/java.desktop/share/classes/javax/swing/text/ParagraphView.java
+++ b/src/java.desktop/share/classes/javax/swing/text/ParagraphView.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -372,7 +372,7 @@ public class ParagraphView extends FlowView
implements TabExpander {
      }

      /**
-     * Create a <code>View</code> that should be used to hold a
+     * Create a <code>View</code> that should be used to hold
       * a row's worth of children in a flow.
       * @return the new <code>View</code>
       * @since 1.3
diff --git a/src/java.desktop/share/classes/javax/swing/text/StyleContext.java
b/src/java.desktop/share/classes/javax/swing/text/StyleContext.java
index 86c6eed47bf..89a2dda4b89 100644
--- a/src/java.desktop/share/classes/javax/swing/text/StyleContext.java
+++ b/src/java.desktop/share/classes/javax/swing/text/StyleContext.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2015, 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
@@ -197,7 +197,7 @@ public class StyleContext implements Serializable,
AbstractDocument.AttributeCon

          /**
           * if either superscript or subscript is
-         * is set, we need to reduce the font size
+         * set, we need to reduce the font size
           * by 2.
           */
          if (StyleConstants.isSuperscript(attr) ||
@@ -479,7 +479,7 @@ public class StyleContext implements Serializable,
AbstractDocument.AttributeCon
       * behavior of SmallAttributeSet.  This can be reimplemented
       * to return an AttributeSet that provides some sort of
       * attribute conversion.
-     * @param a The set of attributes to be represented in the
+     * @param a The set of attributes to be represented in
       *  the compact form.
       * @return a compact set of attributes that might be shared
       */
@@ -496,7 +496,7 @@ public class StyleContext implements Serializable,
AbstractDocument.AttributeCon
       * to return a MutableAttributeSet that provides some sort of
       * attribute conversion.
       *
-     * @param a The set of attributes to be represented in the
+     * @param a The set of attributes to be represented in
       *  the larger form.
       * @return a large set of attributes that should trade off
       * space for time
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/TextLayoutStrategy.java
b/src/java.desktop/share/classes/javax/swing/text/TextLayoutStrategy.java
index 581b5204108..0c305b09c53 100644
--- a/src/java.desktop/share/classes/javax/swing/text/TextLayoutStrategy.java
+++ b/src/java.desktop/share/classes/javax/swing/text/TextLayoutStrategy.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 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
@@ -98,7 +98,7 @@ class TextLayoutStrategy extends FlowView.FlowStrategy {
      }

      /**
-     * Does a a full layout on the given View.  This causes all of
+     * Does a full layout on the given View.  This causes all of
       * the rows (child views) to be rebuilt to match the given
       * constraints for each row.  This is called by a FlowView.layout
       * to update the child views in the flow.
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java
b/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java
index cc7f3d9c290..57ad3fac7d8 100644
--- a/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java
+++ b/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -982,7 +982,7 @@ class AccessibleHTML implements Accessible {
              }

              /**
-             * IndexedSegment extends Segment adding the offset into the
+             * IndexedSegment extends Segment adding the offset into
               * the model the <code>Segment</code> was asked for.
               */
              private class IndexedSegment extends Segment {
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/html/MinimalHTMLWriter.java
b/src/java.desktop/share/classes/javax/swing/text/html/MinimalHTMLWriter.java
index caa8dd07051..9f8a759ed90 100644
--- 
a/src/java.desktop/share/classes/javax/swing/text/html/MinimalHTMLWriter.java
+++ 
b/src/java.desktop/share/classes/javax/swing/text/html/MinimalHTMLWriter.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2010, 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
@@ -263,7 +263,7 @@ public class MinimalHTMLWriter extends AbstractWriter {
              Style s = styledDoc.getStyle((String)styleNames.nextElement());

              /** PENDING: Once the name attribute is removed
-                from the list we check check for 0. **/
+                from the list we check for 0. **/
              if (s.getAttributeCount() == 1 &&
                  s.isDefined(StyleConstants.NameAttribute)) {
                  continue;
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/html/OptionListModel.java
b/src/java.desktop/share/classes/javax/swing/text/html/OptionListModel.java
index 70603d0cc63..dc652a2e122 100644
--- a/src/java.desktop/share/classes/javax/swing/text/html/OptionListModel.java
+++ b/src/java.desktop/share/classes/javax/swing/text/html/OptionListModel.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2014, 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
@@ -498,7 +498,7 @@ class OptionListModel<E> extends
DefaultListModel<E> implements ListSelectionMod
       * Set the lead selection index, ensuring that values between the
       * anchor and the new lead are either all selected or all deselected.
       * If the value at the anchor index is selected, first clear all the
-     * values in the range [anchor, oldLeadIndex], then select all the values
+     * values in the range [anchor, oldLeadIndex], then select all the
       * values in the range [anchor, newLeadIndex], where oldLeadIndex
is the old
       * leadIndex and newLeadIndex is the new one.
       * <p>
diff --git 
a/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java
b/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java
index 8ae975d98ee..2394bca818a 100644
--- a/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java
+++ b/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -691,7 +691,7 @@ public class StyleSheet extends StyleContext {
       * to return an AttributeSet that provides some sort of
       * attribute conversion.
       *
-     * @param a The set of attributes to be represented in the
+     * @param a The set of attributes to be represented in
       *  the compact form.
       */
      protected SmallAttributeSet createSmallAttributeSet(AttributeSet a) {
@@ -707,7 +707,7 @@ public class StyleSheet extends StyleContext {
       * to return a MutableAttributeSet that provides some sort of
       * attribute conversion.
       *
-     * @param a The set of attributes to be represented in the
+     * @param a The set of attributes to be represented in
       *  the larger form.
       */
      protected MutableAttributeSet createLargeAttributeSet(AttributeSet a) {
@@ -2129,7 +2129,7 @@ public class StyleSheet extends StyleContext {
          /**
           * Returns a string that represents the value
           * of the HTML.Attribute.TYPE attribute.
-         * If this attributes is not defined, then
+         * If this attributes is not defined,
           * then the type defaults to "disc" unless
           * the tag is on Ordered list.  In the case
           * of the latter, the default type is "decimal".
diff --git 
a/src/java.desktop/share/classes/javax/swing/tree/TreeCellRenderer.java
b/src/java.desktop/share/classes/javax/swing/tree/TreeCellRenderer.java
index 49063359336..07a62f4fb0d 100644
--- a/src/java.desktop/share/classes/javax/swing/tree/TreeCellRenderer.java
+++ b/src/java.desktop/share/classes/javax/swing/tree/TreeCellRenderer.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2013, 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
@@ -51,7 +51,7 @@ public interface TreeCellRenderer {
       * configured for.  Returns the <code>Component</code> that the renderer
       * uses to draw the value.
       * <p>
-     * The <code>TreeCellRenderer</code> is also responsible for rendering the
+     * The <code>TreeCellRenderer</code> is also responsible for rendering
       * the cell representing the tree's current DnD drop location if
       * it has one. If this renderer cares about rendering
       * the DnD drop location, it should query the tree directly to
diff --git a/src/java.desktop/share/classes/sun/awt/AppContext.java
b/src/java.desktop/share/classes/sun/awt/AppContext.java
index d2fd17b08b7..aa64a541d35 100644
--- a/src/java.desktop/share/classes/sun/awt/AppContext.java
+++ b/src/java.desktop/share/classes/sun/awt/AppContext.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2018, 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
@@ -118,7 +118,7 @@ import java.util.function.Supplier;
   * disrupting other applets or potentially the browser itself.<p>
   *
   * Because the AppContext is a facility for safely extending application
- * service support to applets, none of its methods may be blocked by a
+ * service support to applets, none of its methods may be blocked by
   * a SecurityManager check in a valid Java implementation.  Applets may
   * therefore safely invoke any of its methods without worry of being
   * blocked.
diff --git a/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java
b/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java
index 63cbccbb6ad..e62e1f45020 100644
--- a/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java
+++ b/src/java.desktop/share/classes/sun/awt/im/InputMethodContext.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2011, 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
@@ -182,7 +182,7 @@ public class InputMethodContext
          // through the Java event queue. If the component that the event is
          // intended for isn't an active client, or if we're using
below-the-spot
          // input, we need to dispatch this event
-        // to the input window. Note that that component is not necessarily the
+        // to the input window. Note that this component is not necessarily the
          // current client component, since we may have switched clients while
          // the event was in the queue.
          if (event instanceof InputMethodEvent) {
diff --git a/src/java.desktop/share/classes/sun/awt/util/PerformanceLogger.java
b/src/java.desktop/share/classes/sun/awt/util/PerformanceLogger.java
index b35727f4627..2b8fa25cba2 100644
--- a/src/java.desktop/share/classes/sun/awt/util/PerformanceLogger.java
+++ b/src/java.desktop/share/classes/sun/awt/util/PerformanceLogger.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -228,7 +228,7 @@ public class PerformanceLogger {

      /**
       * Sets the value of a given time and returns the index of the
-     * slot that that time was stored in.
+     * slot that time was stored in.
       */
      public static int setTime(String message) {
          if (loggingEnabled()) {
@@ -241,7 +241,7 @@ public class PerformanceLogger {

      /**
       * Sets the value of a given time and returns the index of the
-     * slot that that time was stored in.
+     * slot that time was stored in.
       * This version of the method is
       * given the time to log, instead of expecting this method to
       * get the time itself.  This is done in case the time was
diff --git a/src/java.desktop/share/classes/sun/font/BidiUtils.java
b/src/java.desktop/share/classes/sun/font/BidiUtils.java
index 285245ed381..b25e70ffa83 100644
--- a/src/java.desktop/share/classes/sun/font/BidiUtils.java
+++ b/src/java.desktop/share/classes/sun/font/BidiUtils.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -84,7 +84,7 @@ public final class BidiUtils {
      static final char NUMLEVELS = 62;

      /**
-     * Given level data, compute a a visual to logical mapping.
+     * Given level data, compute a visual to logical mapping.
       * The leftmost (or topmost) character is at visual index zero.  The
       * logical index of the character is derived from the visual index
       * by the expression {@code li = map[vi];}.
diff --git a/src/java.desktop/share/classes/sun/font/FontDesignMetrics.java
b/src/java.desktop/share/classes/sun/font/FontDesignMetrics.java
index 33b9f363a0f..b708bf93c60 100644
--- a/src/java.desktop/share/classes/sun/font/FontDesignMetrics.java
+++ b/src/java.desktop/share/classes/sun/font/FontDesignMetrics.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2018, 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
@@ -166,7 +166,7 @@ public final class FontDesignMetrics extends FontMetrics {
       * and softly cache as many as GC allows. In practice this means we
       * should keep references around until memory gets low.
       * We key the cache either by a Font or a combination of the Font and
-     * and FRC. A lot of callers use only the font so although there's code
+     * FRC. A lot of callers use only the font so although there's code
       * duplication, we allow just a font to be a key implying a default FRC.
       * Also we put the references on a queue so that if they do get nulled
       * out we can clear the keys from the table.
diff --git 
a/src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java
b/src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java
index 5e6f802da14..50c11f6332e 100644
--- a/src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java
+++ b/src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -360,7 +360,7 @@ public abstract class OGLSurfaceData extends SurfaceData
       * Returns native resource of specified {@code resType} associated with
       * this surface.
       *
-     * Specifically, for {@code OGLSurfaceData} this method returns the
+     * Specifically, for {@code OGLSurfaceData} this method returns
       * the following:
       * <pre>
       * TEXTURE              - texture id
diff --git a/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
b/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
index 429c383248d..bfccdbc7cf3 100644
--- a/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
+++ b/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2018, 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
@@ -1713,7 +1713,7 @@ public abstract class RasterPrinterJob extends
PrinterJob {
       * updates a Paper object to reflect the current printer's selected
       * paper size and imageable area for that paper size.
       * Default implementation copies settings from the original, applies
-     * applies some validity checks, changes them only if they are
+     * some validity checks, changes them only if they are
       * clearly unreasonable, then sets them into the new Paper.
       * Subclasses are expected to override this method to make more
       * informed decisons.
diff --git 
a/src/java.desktop/share/classes/sun/swing/plaf/synth/DefaultSynthStyle.java
b/src/java.desktop/share/classes/sun/swing/plaf/synth/DefaultSynthStyle.java
index 587aceb454f..fe9a423d731 100644
--- a/src/java.desktop/share/classes/sun/swing/plaf/synth/DefaultSynthStyle.java
+++ b/src/java.desktop/share/classes/sun/swing/plaf/synth/DefaultSynthStyle.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -588,7 +588,7 @@ public class DefaultSynthStyle extends SynthStyle
implements Cloneable {
      }

      /**
-     * Returns the array of StateInfo's that that are used to specify
+     * Returns the array of StateInfo's that are used to specify
       * properties specific to a particular style.
       *
       * @return Array of StateInfos.
diff --git a/src/java.desktop/unix/classes/sun/awt/X11/XProtocol.java
b/src/java.desktop/unix/classes/sun/awt/X11/XProtocol.java
index ed3352b9f72..b52031d97ca 100644
--- a/src/java.desktop/unix/classes/sun/awt/X11/XProtocol.java
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XProtocol.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -37,7 +37,7 @@ class XProtocol {

      volatile boolean firstCheck = true;
      /*
-     * Check that that the list of protocols specified by WM in property
+     * Check that the list of protocols specified by WM in property
       * named LIST_NAME on the root window contains protocol PROTO.
       */
      boolean checkProtocol(XAtom listName, XAtom protocol) {
diff --git 
a/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsDesktopManager.java
b/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsDesktopManager.java
index 82708f571e5..946daebc021 100644
--- 
a/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsDesktopManager.java
+++ 
b/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsDesktopManager.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2014, 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
@@ -40,7 +40,7 @@ import java.lang.ref.WeakReference;
   * This class implements a DesktopManager which more closely follows
   * the MDI model than the DefaultDesktopManager.  Unlike the
   * DefaultDesktopManager policy, MDI requires that the selected
- * and activated child frames are the same, and that that frame
+ * and activated child frames are the same, and that this frame
   * always be the top-most window.
   * <p>
   * The maximized state is managed by the DesktopManager with MDI,
diff --git 
a/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java
b/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java
index 8849b786f6f..ba4081e38f5 100644
--- 
a/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java
+++ 
b/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsTreeUI.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1997, 2013, 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
@@ -206,7 +206,7 @@ public class WindowsTreeUI extends BasicTreeUI {
           * <code>convertValueToText</code>, which ultimately invokes
           * <code>toString</code> on <code>value</code>.
           * The foreground color is set based on the selection and the icon
-         * is set based on on leaf and expanded.
+         * is set based on leaf and expanded.
           */
          public Component getTreeCellRendererComponent(JTree tree, Object 
value,
                                                        boolean sel,
diff --git a/src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java
b/src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java
index b7508fc290e..d4668fee7be 100644
--- a/src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java
+++ b/src/java.desktop/windows/classes/sun/awt/windows/WPathGraphics.java
@@ -1,5 +1,5 @@
  /*
- * Copyright (c) 1998, 2014, 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
@@ -1692,7 +1692,7 @@ final class WPathGraphics extends PathGraphics {
              /* selectStylePen is not supported, must be Win 9X */
              else {

-                /* let's see if we can use a a default pen
+                /* let's see if we can use a default pen
                   *  if it's round end (Windows' default style)
                   *  or it's vertical/horizontal
                   *  or stroke is too thin.



--
Best regards, Sergey.

Reply via email to