Skip to content

Commit fa322e4

Browse files
jaikiranMichael Ernst
and
Michael Ernst
committed
8298709: Fix typos in src/java.desktop/ and various test classes of client component
Co-authored-by: Michael Ernst <mernst@openjdk.org> Reviewed-by: iris, prr
1 parent e41686b commit fa322e4

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

src/java.desktop/share/classes/javax/swing/text/Document.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
* <p>Removing text from a DefaultStyledDocument is similar to removing text from
279279
* a PlainDocument. The only difference is the extra level of Elements.
280280
* Consider what would happen if you deleted two characters at Offset 1
281-
* from Figure 10, above. Since the the second Element of Paragraph 1 is
281+
* from Figure 10, above. Since the second Element of Paragraph 1 is
282282
* completely contained in the deleted region, it would be removed.
283283
* Assuming the attributes of Paragraph 1's first child matched those of
284284
* Paragraph2's first child, the results would be those shown in <u>Figure 11</u>.

test/jdk/java/awt/Multiscreen/DeviceIdentificationTest/DeviceIdentificationTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @test
2525
* @bug 6614214 8198613
2626
* @summary Verifies that we enter the fs mode on the correct screen.
27-
* Here is how to test: start the test on on a multi-screen system.
27+
* Here is how to test: start the test on a multi-screen system.
2828
* Verify that the display is correctly tracked by dragging the frame back
2929
* and forth between screens. Then verify that the correct device enters
3030
* the full-screen mode - when "Enter FS mode" is pressed it should enter on

test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void init() {
121121
"6) The output should contain data in three different formats",
122122
" provided by the system clipboard",
123123
" - Data after the \"ALL:\" marker should include the data",
124-
" from the the \"SELECTION:\" marker",
124+
" from the \"SELECTION:\" marker",
125125
" - Data after the \"FRAGMENT\" marker should include the data",
126126
" from the \"SELECTION:\" marker and may be some closing",
127127
" tags could be added to the mark-up",

test/jdk/java/awt/print/PrinterJob/PageFormatChange.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public class PageFormatChange {
3535

3636
static String[] text = {
37-
"This is is a manual test intended to be run on Windows, and you",
37+
"This is a manual test intended to be run on Windows, and you",
3838
"must have at least two printers installed, and ideally the second",
3939
"printer should support large paper sizes. When the pageDialog appears",
4040
"first change printers, then choose a large paper size, then OK",

test/jdk/javax/imageio/stream/DeleteOnExitTest.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# @test
2323
# @bug 6291034
2424
# @run shell DeleteOnExitTest.sh
25-
# @summary Verify that temporary imageio files files are deleted on VM exit.
25+
# @summary Verify that temporary imageio files are deleted on VM exit.
2626

2727
if [ -z "${TESTSRC}" ]; then
2828
echo "TESTSRC undefined: defaulting to ."

test/jdk/javax/print/attribute/ServiceDlgPageRangeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static void main(java.lang.String[] args) throws Exception {
9999
} catch (InterruptedException e) {
100100
if (!testPassed && testGeneratedInterrupt) {
101101
throw new RuntimeException("PageRanges option is not disabled "
102-
+ "for for Non serv-formatted flvrs");
102+
+ "for Non serv-formatted flvrs");
103103
}
104104
}
105105
if (!testGeneratedInterrupt) {

test/jdk/javax/sound/midi/Sequencer/SequencerState.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static boolean hasSequencer() {
5555

5656

5757
public static void main(String[] args) throws Exception {
58-
out("4913027: several Sequencer methods should should specify behaviour on closed Sequencer");
58+
out("4913027: several Sequencer methods should specify behaviour on closed Sequencer");
5959
if (hasSequencer()) {
6060
boolean passed = testAll();
6161
if (passed) {

test/jdk/javax/swing/JColorChooser/Test4193384.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private static void test(Color[] colors) {
5151
float[] hsb = new float[3];
5252
for (int i = 0; i < colors.length; i++) {
5353
Color color = colors[i];
54-
// Make sure sure that there wasn't a regression
54+
// Make sure that there wasn't a regression
5555
// in java.awt.Color and the conversion methods
5656
Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsb);
5757
if (!color.equals(Color.getHSBColor(hsb[0], hsb[1], hsb[2]))) {

test/jdk/sanity/client/SwingSet/src/EditorPaneDemoTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
/*
5353
* @test
5454
* @key headful screenshots
55-
* @summary Verifies SwingSet3 EditorPaneDemo by navigating and and validating
55+
* @summary Verifies SwingSet3 EditorPaneDemo by navigating and validating
5656
* the page contents in all pages
5757
*
5858
* @library /sanity/client/lib/jemmy/src

test/jdk/sanity/client/SwingSet/src/TabbedPaneDemoTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @test
4040
* @key headful
4141
* @summary Verifies SwingSet3 TabbedPaneDemo by iterating through tab placement
42-
* positions, opening each tab and verifying the the tab gets selected.
42+
* positions, opening each tab and verifying the tab gets selected.
4343
*
4444
* @library /sanity/client/lib/jemmy/src
4545
* @library /sanity/client/lib/Extensions/src

test/jdk/sanity/client/lib/SwingSet3/src/com/sun/swingset3/demos/tree/resources/TreeDemo.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Tree Demo ###
22

3-
TreeDemo.accessible_description=This demo shows shows a sample usage of a JTree component.
3+
TreeDemo.accessible_description=This demo shows a sample usage of a JTree component.
44
TreeDemo.tooltip=JTree demo
55
TreeDemo.name=Tree Demo
66
TreeDemo.music=Music

test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/WindowWaiter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public Window waitWindow(Window o, ComponentChooser ch)
286286
}
287287

288288
/**
289-
* Wait till the count of windows which meet the the search criteria becomes
289+
* Wait till the count of windows which meet the search criteria becomes
290290
* equal to count.
291291
*
292292
* @param ch a component chooser used to define and apply the search
@@ -300,7 +300,7 @@ public static void waitWindowCount(ComponentChooser ch, int count)
300300
}
301301

302302
/**
303-
* Wait till the count of windows which meet the the search criteria becomes
303+
* Wait till the count of windows which meet the search criteria becomes
304304
* equal to count.
305305
*
306306
* @param owner The owner window of all the windows to be checked

test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/ComponentOperator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public ComponentOperator(ContainerOperator<?> cont, int index) {
252252

253253
/**
254254
* Constructor. Waits for a component in a container to show. The component
255-
* is is the first {@code java.awt.Component} that shows and that lies
255+
* is the first {@code java.awt.Component} that shows and that lies
256256
* below the container in the display containment hierarchy. Uses cont's
257257
* timeout and output for waiting and to init operator.
258258
*

test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/JTreeOperator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* <BR><BR>Timeouts used: <BR>
6767
* JTreeOperator.WaitNodeExpandedTimeout - time to wait node expanded <BR>
6868
* JTreeOperator.WaitNodeCollapsedTimeout - time to wait node collapsed <BR>
69-
* JTreeOperator.WaitAfterNodeExpandedTimeout - time to to sleep after node
69+
* JTreeOperator.WaitAfterNodeExpandedTimeout - time to sleep after node
7070
* expanded <BR>
7171
* JTreeOperator.WaitNextNodeTimeout - time to wait next node displayed <BR>
7272
* JTreeOperator.WaitNodeVisibleTimeout - time to wait node visible <BR>

test/jdk/sanity/client/lib/jemmy/src/org/netbeans/jemmy/operators/Operator.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public Timeouts getTimeouts() {
366366
}
367367

368368
/**
369-
* Returns component visualizer. Visualizer is used from from
369+
* Returns component visualizer. Visualizer is used from
370370
* makeComponentVisible() method.
371371
*
372372
* @return a visualizer assigned to this operator.
@@ -378,7 +378,7 @@ public ComponentVisualizer getVisualizer() {
378378
}
379379

380380
/**
381-
* Changes component visualizer. Visualizer is used from from
381+
* Changes component visualizer. Visualizer is used from
382382
* makeComponentVisible() method.
383383
*
384384
* @param vo a visualizer to assign to this operator.
@@ -1080,7 +1080,7 @@ public String map() {
10801080
}
10811081

10821082
/**
1083-
* Interface used to make component visible & ready to to make operations
1083+
* Interface used to make component visible & ready to make operations
10841084
* with.
10851085
*/
10861086
public interface ComponentVisualizer {

test/jdk/sun/java2d/pipe/hw/RSLAPITest/RSLAPITest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static void testInvalidType(AccelSurface surface, int type) {
7575
if (ret != 0l) {
7676
System.err.printf(
7777
"FAILED: surface.getNativeResource(%d) returned" +
78-
" 0x%s. It should have have returned 0L\n",
78+
" 0x%s. It should have returned 0L\n",
7979
type, ret);
8080
failed = true;
8181
}

0 commit comments

Comments
 (0)