Skip to content

Commit

Permalink
6218162: DefaultTableColumnModel.getColumn() method should mention Ar…
Browse files Browse the repository at this point in the history
…rayIndexOutOfBoundsException

Reviewed-by: aivanov, prr
  • Loading branch information
prsadhuk committed Mar 10, 2022
1 parent 5b78a82 commit 6a3a7b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2022, 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
Expand Down Expand Up @@ -290,6 +290,9 @@ public int getColumnIndex(Object identifier) {
* @param columnIndex the index of the column desired
* @return the <code>TableColumn</code> object for the column
* at <code>columnIndex</code>
* @throws ArrayIndexOutOfBoundsException if <code>columnIndex</code>
* is out of range:
* (<code>columnIndex &lt; 0 || columnIndex &gt;= getColumnCount()</code>)
*/
public TableColumn getColumn(int columnIndex) {
return tableColumns.elementAt(columnIndex);
Expand Down

1 comment on commit 6a3a7b9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.