Skip to content

Commit 89e068b

Browse files
author
Andrey Turbanov
committed
8316556: Fix typos in java.desktop
Reviewed-by: prr, aivanov
1 parent 481cfc7 commit 89e068b

File tree

81 files changed

+196
-196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+196
-196
lines changed

src/java.desktop/macosx/classes/sun/font/CFontManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -273,7 +273,7 @@ protected FontFamily getFontFamily(String realName, String fallbackName){
273273
if (FontUtilities.debugFonts()) {
274274
FontUtilities.logWarning(
275275
"The font \"" + realName + "\" is not available, so \"" + fallbackName +
276-
"\" has been substituted, but may have unexpected appearance or behavor. Re-enable the \"" +
276+
"\" has been substituted, but may have unexpected appearance or behavior. Re-enable the \"" +
277277
realName +"\" font to remove this warning.");
278278
}
279279
return family;

src/java.desktop/macosx/classes/sun/lwawt/macosx/CTrayIcon.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -312,7 +312,7 @@ private native void nativeShowNotification(long trayIconModel,
312312
*
313313
* @param icon icon to scale
314314
* @param scaleFactor scale factor to use
315-
* @return scaled icon as BuffedredImage
315+
* @return scaled icon as BufferedImage
316316
*/
317317
private static BufferedImage scaleIcon(Icon icon, double scaleFactor) {
318318
if (icon == null) {

src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1440,7 +1440,7 @@ protected int getPreferredCompressionType(ImageTypeSpecifier imageType) {
14401440
/*
14411441
* Check whether we can encode image of given type using compression method in question.
14421442
*
1443-
* For example, TYPE_USHORT_565_RGB can be encodeed with BI_BITFIELDS compression only.
1443+
* For example, TYPE_USHORT_565_RGB can be encoded with BI_BITFIELDS compression only.
14441444
*
14451445
* NB: method should be extended if other cases when we can not encode
14461446
* with given compression will be discovered.

src/java.desktop/share/classes/com/sun/imageio/plugins/common/ReaderUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -75,7 +75,7 @@ private static void computeUpdatedPixels(int sourceOffset,
7575
//
7676
// For now we use a brute-force approach although we could
7777
// attempt to analyze the congruences. If passPeriod and
78-
// sourceSubsamling are relatively prime, the period will be
78+
// sourceSubsampling are relatively prime, the period will be
7979
// their product. If they share a common factor, either the
8080
// period will be equal to the larger value, or the sequences
8181
// will be completely disjoint, depending on the relationship
@@ -226,7 +226,7 @@ public static int readMultiByteInteger(ImageInputStream iis)
226226
* it in byte array.
227227
* @param length the size of data to decode
228228
*
229-
* @return array of size length when decode succeeeds
229+
* @return array of size length when decode succeeds
230230
*
231231
* @throws IOException if decoding of stream fails
232232
*/

src/java.desktop/share/classes/com/sun/imageio/plugins/common/SimpleRenderedImage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -79,7 +79,7 @@ public int getMinX() {
7979
}
8080

8181
/**
82-
* Returns the X coordinate of the column immediatetely to the
82+
* Returns the X coordinate of the column immediately to the
8383
* right of the rightmost column of the image. getMaxX() is
8484
* implemented in terms of getMinX() and getWidth() and so does
8585
* not need to be implemented by subclasses.

src/java.desktop/share/classes/com/sun/imageio/plugins/gif/GIFImageWriter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -631,10 +631,10 @@ private void write(boolean writeHeader,
631631
if (imageMetadata.transparentColorFlag) {
632632
imageMetadata.transparentColorIndex = index;
633633
}
634-
/* NB: transparentColorFlag might have not beed reset for
634+
/* NB: transparentColorFlag might have not been reset for
635635
greyscale images but explicitly resetting it here
636-
is potentially not right thing to do until we have way
637-
to find whether current value was explicitly set by
636+
is potentially not the right thing to do until we have a way
637+
to find whether the current value was explicitly set by
638638
the user.
639639
*/
640640
}

src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFDecompressor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1922,7 +1922,7 @@ public void decodeRaw(short[] s,
19221922

19231923
dstOffset += scanlineStride;
19241924
}
1925-
} else { // ByteOrder.LITLE_ENDIAN
1925+
} else { // ByteOrder.LITTLE_ENDIAN
19261926
for (int j = 0; j < srcHeight; j++) {
19271927
for (int i = 0; i < shortsPerRow; i++) {
19281928
short loVal = b[bOffset++];
@@ -1982,7 +1982,7 @@ public void decodeRaw(int[] i,
19821982

19831983
dstOffset += scanlineStride;
19841984
}
1985-
} else { // ByteOrder.LITLE_ENDIAN
1985+
} else { // ByteOrder.LITTLE_ENDIAN
19861986
for (int j = 0; j < srcHeight; j++) {
19871987
for (int k = 0; k < intsPerRow; k++) {
19881988
int v3 = b[bOffset++] & 0xff;
@@ -2045,7 +2045,7 @@ public void decodeRaw(float[] f,
20452045

20462046
dstOffset += scanlineStride;
20472047
}
2048-
} else { // ByteOrder.LITLE_ENDIAN
2048+
} else { // ByteOrder.LITTLE_ENDIAN
20492049
for (int j = 0; j < srcHeight; j++) {
20502050
for (int i = 0; i < floatsPerRow; i++) {
20512051
int v3 = b[bOffset++] & 0xff;
@@ -2115,7 +2115,7 @@ public void decodeRaw(double[] d,
21152115

21162116
dstOffset += scanlineStride;
21172117
}
2118-
} else { // ByteOrder.LITLE_ENDIAN
2118+
} else { // ByteOrder.LITTLE_ENDIAN
21192119
for (int j = 0; j < srcHeight; j++) {
21202120
for (int i = 0; i < doublesPerRow; i++) {
21212121
long v7 = b[bOffset++] & 0xff;
@@ -2532,7 +2532,7 @@ public void decode() throws IOException {
25322532
SampleModel sm = ras.getSampleModel();
25332533

25342534
// Branch based on whether data are bit-contiguous, i.e.,
2535-
// data are packaed as tightly as possible leaving no unused
2535+
// data are packed as tightly as possible leaving no unused
25362536
// bits except at the end of a row.
25372537
if(isDataBufferBitContiguous(sm, bitsPerSample)) {
25382538
// Use byte or float data directly.

src/java.desktop/share/classes/com/sun/imageio/plugins/tiff/TIFFImageWriter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -2012,7 +2012,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
20122012
currTile[tcount++] = scalel[b][sample];
20132013
}
20142014
}
2015-
} else { // ByteOrder.LITLE_ENDIAN
2015+
} else { // ByteOrder.LITTLE_ENDIAN
20162016
for (int s = 0; s < numSamples; s += xSkip) {
20172017
for (int b = 0; b < numBands; b++) {
20182018
int sample = samples[s + b];
@@ -2032,7 +2032,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
20322032
(byte)(sample & 0xff);
20332033
}
20342034
}
2035-
} else { // ByteOrder.LITLE_ENDIAN
2035+
} else { // ByteOrder.LITTLE_ENDIAN
20362036
for (int s = 0; s < numSamples; s += xSkip) {
20372037
for (int b = 0; b < numBands; b++) {
20382038
int sample = samples[s + b];
@@ -2064,7 +2064,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
20642064
(byte)(isample & 0x000000ff);
20652065
}
20662066
}
2067-
} else { // ByteOrder.LITLE_ENDIAN
2067+
} else { // ByteOrder.LITTLE_ENDIAN
20682068
for (int s = 0; s < numSamples; s += xSkip) {
20692069
for (int b = 0; b < numBands; b++) {
20702070
float fsample = fsamples[s + b];
@@ -2107,7 +2107,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
21072107
(byte)(sampleOut & 0x000000ff);
21082108
}
21092109
}
2110-
} else { // ByteOrder.LITLE_ENDIAN
2110+
} else { // ByteOrder.LITTLE_ENDIAN
21112111
for (int s = 0; s < numSamples; s += xSkip) {
21122112
for (int b = 0; b < numBands; b++) {
21132113
long sampleOut =
@@ -2139,7 +2139,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
21392139
(byte)(isample & 0x000000ff);
21402140
}
21412141
}
2142-
} else { // ByteOrder.LITLE_ENDIAN
2142+
} else { // ByteOrder.LITTLE_ENDIAN
21432143
for (int s = 0; s < numSamples; s += xSkip) {
21442144
for (int b = 0; b < numBands; b++) {
21452145
int isample = samples[s + b];
@@ -2184,7 +2184,7 @@ private int writeTile(Rectangle tileRect, TIFFCompressor compressor)
21842184
(byte)(lsample & 0x00000000000000ffL);
21852185
}
21862186
}
2187-
} else { // ByteOrder.LITLE_ENDIAN
2187+
} else { // ByteOrder.LITTLE_ENDIAN
21882188
for (int s = 0; s < numSamples; s += xSkip) {
21892189
for (int b = 0; b < numBands; b++) {
21902190
double dsample = dsamples[s + b];

src/java.desktop/share/classes/java/awt/AWTEventMulticaster.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1098,7 +1098,7 @@ else if (a.getClass().getComponentType().isInstance(l)) {
10981098
* listener, or an empty array if no such listeners have been
10991099
* chained by the specified multicast listener
11001100
* @throws NullPointerException if the specified
1101-
* {@code listenertype} parameter is {@code null}
1101+
* {@code listenerType} parameter is {@code null}
11021102
* @throws ClassCastException if {@code listenerType}
11031103
* doesn't specify a class or interface that implements
11041104
* {@code java.util.EventListener}

src/java.desktop/share/classes/java/awt/FlowLayout.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1995, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -651,8 +651,8 @@ public void layoutContainer(Container target) {
651651
//
652652
private static final int currentSerialVersion = 1;
653653
/**
654-
* This represent the {@code currentSerialVersion}
655-
* which is bein used. It will be one of two values:
654+
* This represents the {@code currentSerialVersion}
655+
* which is being used. It will be one of two values:
656656
* {@code 0} versions before Java 2 platform v1.2,
657657
* {@code 1} versions after Java 2 platform v1.2.
658658
*
@@ -664,7 +664,7 @@ public void layoutContainer(Container target) {
664664
/**
665665
* Reads this object out of a serialization stream, handling
666666
* objects written by older versions of the class that didn't contain all
667-
* of the fields we use now..
667+
* of the fields we use now.
668668
*
669669
* @param stream the {@code ObjectInputStream} to read
670670
* @throws ClassNotFoundException if the class of a serialized object could

0 commit comments

Comments
 (0)