8186851: fix misspellings of "dependent" and "independent" in the JDK repo
Reviewed-by: bpb, psadhukhan
--- a/jdk/src/java.base/share/classes/java/text/Collator.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.base/share/classes/java/text/Collator.java Tue Aug 29 12:16:28 2017 -0700
@@ -88,7 +88,7 @@
* comparisons. Four strengths are provided: <code>PRIMARY</code>,
* <code>SECONDARY</code>, <code>TERTIARY</code>, and <code>IDENTICAL</code>.
* The exact assignment of strengths to language features is
- * locale dependant. For example, in Czech, "e" and "f" are considered
+ * locale dependent. For example, in Czech, "e" and "f" are considered
* primary differences, while "e" and "ě" are secondary differences,
* "e" and "E" are tertiary differences and "e" and "e" are identical.
* The following shows how both case and accents could be ignored for
@@ -132,7 +132,7 @@
/**
* Collator strength value. When set, only PRIMARY differences are
* considered significant during comparison. The assignment of strengths
- * to language features is locale dependant. A common example is for
+ * to language features is locale dependent. A common example is for
* different base letters ("a" vs "b") to be considered a PRIMARY difference.
* @see java.text.Collator#setStrength
* @see java.text.Collator#getStrength
@@ -141,7 +141,7 @@
/**
* Collator strength value. When set, only SECONDARY and above differences are
* considered significant during comparison. The assignment of strengths
- * to language features is locale dependant. A common example is for
+ * to language features is locale dependent. A common example is for
* different accented forms of the same base letter ("a" vs "\u00E4") to be
* considered a SECONDARY difference.
* @see java.text.Collator#setStrength
@@ -151,7 +151,7 @@
/**
* Collator strength value. When set, only TERTIARY and above differences are
* considered significant during comparison. The assignment of strengths
- * to language features is locale dependant. A common example is for
+ * to language features is locale dependent. A common example is for
* case differences ("a" vs "A") to be considered a TERTIARY difference.
* @see java.text.Collator#setStrength
* @see java.text.Collator#getStrength
@@ -161,7 +161,7 @@
/**
* Collator strength value. When set, all differences are
* considered significant during comparison. The assignment of strengths
- * to language features is locale dependant. A common example is for control
+ * to language features is locale dependent. A common example is for control
* characters ("\u0001" vs "\u0002") to be considered equal at the
* PRIMARY, SECONDARY, and TERTIARY levels but different at the IDENTICAL
* level. Additionally, differences between pre-composed accents such as
--- a/jdk/src/java.base/share/classes/java/text/NumberFormat.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.base/share/classes/java/text/NumberFormat.java Tue Aug 29 12:16:28 2017 -0700
@@ -412,7 +412,7 @@
* For example in the English locale, with ParseIntegerOnly true, the
* string "1234." would be parsed as the integer value 1234 and parsing
* would stop at the "." character. Of course, the exact format accepted
- * by the parse operation is locale dependant and determined by sub-classes
+ * by the parse operation is locale dependent and determined by sub-classes
* of NumberFormat.
*
* @return {@code true} if numbers should be parsed as integers only;
@@ -657,7 +657,7 @@
* Returns true if grouping is used in this format. For example, in the
* English locale, with grouping on, the number 1234567 might be formatted
* as "1,234,567". The grouping separator as well as the size of each group
- * is locale dependant and is determined by sub-classes of NumberFormat.
+ * is locale dependent and is determined by sub-classes of NumberFormat.
*
* @return {@code true} if grouping is used;
* {@code false} otherwise
--- a/jdk/src/java.base/share/classes/sun/nio/ch/Net.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.base/share/classes/sun/nio/ch/Net.java Tue Aug 29 12:16:28 2017 -0700
@@ -602,7 +602,7 @@
/**
* Event masks for the various poll system calls.
- * They will be set platform dependant in the static initializer below.
+ * They will be set platform dependent in the static initializer below.
*/
public static final short POLLIN;
public static final short POLLOUT;
--- a/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m Tue Aug 29 12:16:28 2017 -0700
@@ -192,7 +192,7 @@
//TODO: the following is too much of a hack but should work in 90% cases.
- // besides we don't use device-dependant drawing, so probably
+ // besides we don't use device-dependent drawing, so probably
// that's very fine indeed
splash->byteAlignment = 1;
initFormat(&splash->screenFormat, 0xff << 8,
--- a/jdk/src/java.desktop/share/classes/java/awt/EventQueue.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/java/awt/EventQueue.java Tue Aug 29 12:16:28 2017 -0700
@@ -424,7 +424,7 @@
/*
* Should avoid of calling this method by any means
- * as it's working time is dependant on EQ length.
+ * as it's working time is dependent on EQ length.
* In the worst case this method alone can slow down the entire application
* 10 times by stalling the Event processing.
* Only here by backward compatibility reasons.
--- a/jdk/src/java.desktop/share/classes/javax/sound/midi/MidiDevice.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/sound/midi/MidiDevice.java Tue Aug 29 12:16:28 2017 -0700
@@ -45,7 +45,7 @@
* exit cleanly. Implicit opening is done by calling
* {@link MidiSystem#getReceiver} and {@link MidiSystem#getTransmitter}. The
* {@code MidiDevice} used by {@code MidiSystem.getReceiver} and
- * {@code MidiSystem.getTransmitter} is implementation-dependant unless the
+ * {@code MidiSystem.getTransmitter} is implementation-dependent unless the
* properties {@code javax.sound.midi.Receiver} and
* {@code javax.sound.midi.Transmitter} are used (see the description of
* properties to select default providers in {@link MidiSystem}). A
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolTipUI.java Tue Aug 29 12:16:28 2017 -0700
@@ -224,7 +224,7 @@
/**
* Invoked when the <code>JCompoment</code> associated with the
* <code>JToolTip</code> has changed, or at initialization time. This
- * should update any state dependant upon the <code>JComponent</code>.
+ * should update any state dependent upon the <code>JComponent</code>.
*
* @param c the JToolTip the JComponent has changed on.
*/
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java Tue Aug 29 12:16:28 2017 -0700
@@ -518,7 +518,7 @@
}
/**
- * Updates any state dependant upon the JInternalFrame being shown in
+ * Updates any state dependent upon the JInternalFrame being shown in
* a <code>JOptionPane</code>.
*/
private void updateOptionPaneState() {
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTitlePane.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTitlePane.java Tue Aug 29 12:16:28 2017 -0700
@@ -538,7 +538,7 @@
}
/**
- * Updates state dependant upon the Window's active state.
+ * Updates state dependent upon the Window's active state.
*/
private void setActive(boolean isActive) {
Boolean activeB = isActive ? Boolean.TRUE : Boolean.FALSE;
--- a/jdk/src/java.desktop/share/classes/javax/swing/text/GlyphView.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/swing/text/GlyphView.java Tue Aug 29 12:16:28 2017 -0700
@@ -1131,7 +1131,7 @@
* facilitate faster rendering and model/view
* translation. At a minimum, the GlyphPainter
* allows a View implementation to perform its
- * duties independant of a particular version
+ * duties independent of a particular version
* of JVM and selection of capabilities (i.e.
* shaping for i18n, etc).
*
--- a/jdk/src/java.desktop/share/classes/javax/swing/text/TableView.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/java.desktop/share/classes/javax/swing/text/TableView.java Tue Aug 29 12:16:28 2017 -0700
@@ -61,7 +61,7 @@
* gridbag layout), where table cells can request to span more
* than one grid cell. The default horizontal span of table cells
* will be based upon this grid, but can be changed by reimplementing
- * the requested span of the cell (i.e. table cells can have independant
+ * the requested span of the cell (i.e. table cells can have independent
* spans if desired).
*
* @author Timothy Prinzing
--- a/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/console/ConsoleReader.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/console/ConsoleReader.java Tue Aug 29 12:16:28 2017 -0700
@@ -3532,7 +3532,7 @@
}
/**
- * Output a platform-dependant newline.
+ * Output a platform-dependent newline.
*/
public final void println() throws IOException {
print(CR);
--- a/jdk/src/jdk.sctp/share/classes/com/sun/nio/sctp/package-info.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/src/jdk.sctp/share/classes/com/sun/nio/sctp/package-info.java Tue Aug 29 12:16:28 2017 -0700
@@ -42,9 +42,9 @@
* entire address list at an endpoint for a specific session.
*
* <P> SCTP is message based. I/O operations operate upon messages and message
- * boundaries are preserved. Each association may support multiple independant
+ * boundaries are preserved. Each association may support multiple independent
* logical streams. Each stream represents a sequence of messages within a single
- * association and streams are independant of one another, meaning that stream
+ * association and streams are independent of one another, meaning that stream
* identifiers and sequence numbers are included in the data packet to allow
* sequencing of messages on a per-stream basis.
*
--- a/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/togglebutton/LayoutControlPanel.java Tue Aug 29 17:29:19 2017 +0200
+++ b/jdk/test/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/togglebutton/LayoutControlPanel.java Tue Aug 29 12:16:28 2017 -0700
@@ -66,7 +66,7 @@
// PositioningListener positioningListener = new PositioningListener();
// JRadioButton absolutePos = new JRadioButton("Absolute");
// absolutePos.setMnemonic('a');
- // absolutePos.setToolTipText("Text/Content positioning is independant of line direction");
+ // absolutePos.setToolTipText("Text/Content positioning is independent of line direction");
// group.add(absolutePos);
// absolutePos.addItemListener(positioningListener);
// add(absolutePos);