8333801: Typos in @code references of BufferedImage and JTableHeader
Reviewed-by: abhiscxk, prr
This commit is contained in:
parent
0d3a3771c3
commit
9ed8629e5d
@ -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.
|
||||
*
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user