Skip to content

Commit 9ed8629

Browse files
committed
8333801: Typos in @code references of BufferedImage and JTableHeader
Reviewed-by: abhiscxk, prr
1 parent 0d3a377 commit 9ed8629

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/java.desktop/share/classes/java/awt/image/BufferedImage.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ public WritableRaster getAlphaRaster() {
899899
*
900900
* <p>
901901
*
902-
* An {@code ArrayOutOfBoundsException} may be thrown
902+
* An {@code ArrayIndexOutOfBoundsException} may be thrown
903903
* if the coordinates are not in bounds.
904904
* However, explicit bounds checking is not guaranteed.
905905
*
@@ -933,7 +933,7 @@ public int getRGB(int x, int y) {
933933
*
934934
* <p>
935935
*
936-
* An {@code ArrayOutOfBoundsException} may be thrown
936+
* An {@code ArrayIndexOutOfBoundsException} may be thrown
937937
* if the region is not in bounds.
938938
* However, explicit bounds checking is not guaranteed.
939939
*
@@ -1003,7 +1003,7 @@ public int[] getRGB(int startX, int startY, int w, int h,
10031003
*
10041004
* <p>
10051005
*
1006-
* An {@code ArrayOutOfBoundsException} may be thrown
1006+
* An {@code ArrayIndexOutOfBoundsException} may be thrown
10071007
* if the coordinates are not in bounds.
10081008
* However, explicit bounds checking is not guaranteed.
10091009
*
@@ -1033,7 +1033,7 @@ public void setRGB(int x, int y, int rgb) {
10331033
*
10341034
* <p>
10351035
*
1036-
* An {@code ArrayOutOfBoundsException} may be thrown
1036+
* An {@code ArrayIndexOutOfBoundsException} may be thrown
10371037
* if the region is not in bounds.
10381038
* However, explicit bounds checking is not guaranteed.
10391039
*

src/java.desktop/share/classes/javax/swing/table/JTableHeader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public AccessibleContext getAccessibleContext() {
951951
private AccessibleContext getCurrentAccessibleContext() {
952952
TableColumnModel tcm = table.getColumnModel();
953953
if (tcm != null) {
954-
// Fixes 4772355 - ArrayOutOfBoundsException in
954+
// Fixes 4772355 - ArrayIndexOutOfBoundsException in
955955
// JTableHeader
956956
if (column < 0 || column >= tcm.getColumnCount()) {
957957
return null;
@@ -979,7 +979,7 @@ private AccessibleContext getCurrentAccessibleContext() {
979979
private Component getCurrentComponent() {
980980
TableColumnModel tcm = table.getColumnModel();
981981
if (tcm != null) {
982-
// Fixes 4772355 - ArrayOutOfBoundsException in
982+
// Fixes 4772355 - ArrayIndexOutOfBoundsException in
983983
// JTableHeader
984984
if (column < 0 || column >= tcm.getColumnCount()) {
985985
return null;

test/jdk/javax/swing/JTabbedPane/4361477/bug4361477.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2024, 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
@@ -30,8 +30,7 @@
3030
* @test
3131
* @key headful
3232
* @bug 4361477
33-
* @summary JTabbedPane throws ArrayOutOfBoundsException
34-
* @author Oleg Mokhovikov
33+
* @summary JTabbedPane throws ArrayIndexOutOfBoundsException
3534
* @run main bug4361477
3635
*/
3736
public class bug4361477 {

0 commit comments

Comments
 (0)