8333801: Typos in @code references of BufferedImage and JTableHeader

Reviewed-by: abhiscxk, prr
This commit is contained in:
Jayathirth D V 2024-06-13 15:50:53 +00:00
parent 0d3a3771c3
commit 9ed8629e5d
3 changed files with 8 additions and 9 deletions

View File

@ -899,7 +899,7 @@ public class BufferedImage extends java.awt.Image
*
* <p>
*
* An {@code ArrayOutOfBoundsException} may be thrown
* An {@code ArrayIndexOutOfBoundsException} may be thrown
* if the coordinates are not in bounds.
* However, explicit bounds checking is not guaranteed.
*
@ -933,7 +933,7 @@ public class BufferedImage extends java.awt.Image
*
* <p>
*
* An {@code ArrayOutOfBoundsException} may be thrown
* An {@code ArrayIndexOutOfBoundsException} may be thrown
* if the region is not in bounds.
* However, explicit bounds checking is not guaranteed.
*
@ -1003,7 +1003,7 @@ public class BufferedImage extends java.awt.Image
*
* <p>
*
* An {@code ArrayOutOfBoundsException} may be thrown
* An {@code ArrayIndexOutOfBoundsException} may be thrown
* if the coordinates are not in bounds.
* However, explicit bounds checking is not guaranteed.
*
@ -1033,7 +1033,7 @@ public class BufferedImage extends java.awt.Image
*
* <p>
*
* An {@code ArrayOutOfBoundsException} may be thrown
* An {@code ArrayIndexOutOfBoundsException} may be thrown
* if the region is not in bounds.
* However, explicit bounds checking is not guaranteed.
*

View File

@ -951,7 +951,7 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
private AccessibleContext getCurrentAccessibleContext() {
TableColumnModel tcm = table.getColumnModel();
if (tcm != null) {
// Fixes 4772355 - ArrayOutOfBoundsException in
// Fixes 4772355 - ArrayIndexOutOfBoundsException in
// JTableHeader
if (column < 0 || column >= tcm.getColumnCount()) {
return null;
@ -979,7 +979,7 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
private Component getCurrentComponent() {
TableColumnModel tcm = table.getColumnModel();
if (tcm != null) {
// Fixes 4772355 - ArrayOutOfBoundsException in
// Fixes 4772355 - ArrayIndexOutOfBoundsException in
// JTableHeader
if (column < 0 || column >= tcm.getColumnCount()) {
return null;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2024, 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,8 +30,7 @@ import javax.swing.event.*;
* @test
* @key headful
* @bug 4361477
* @summary JTabbedPane throws ArrayOutOfBoundsException
* @author Oleg Mokhovikov
* @summary JTabbedPane throws ArrayIndexOutOfBoundsException
* @run main bug4361477
*/
public class bug4361477 {