Update old school @exception with new school @throws.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1747096 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2016-06-07 00:36:05 +00:00
parent 2ce582ee66
commit ec9b71b95d
4 changed files with 11 additions and 11 deletions

View File

@ -161,7 +161,7 @@ public class ComparatorChain<E> implements Comparator<E>, Serializable {
*
* @param index index of the Comparator to replace
* @param comparator Comparator to place at the given index
* @exception IndexOutOfBoundsException
* @throws IndexOutOfBoundsException
* if index &lt; 0 or index &gt;= size()
*/
public void setComparator(final int index, final Comparator<E> comparator) throws IndexOutOfBoundsException {

View File

@ -66,7 +66,7 @@ public class NullComparator<E> implements Comparator<E>, Serializable {
* non-<code>null</code> objects. This argument cannot be
* <code>null</code>
*
* @exception NullPointerException if <code>nonNullComparator</code> is
* @throws NullPointerException if <code>nonNullComparator</code> is
* <code>null</code>
**/
public NullComparator(final Comparator<? super E> nonNullComparator) {
@ -106,7 +106,7 @@ public class NullComparator<E> implements Comparator<E>, Serializable {
* that <code>null</code> should be compared as lower than a
* non-<code>null</code> object.
*
* @exception NullPointerException if <code>nonNullComparator</code> is
* @throws NullPointerException if <code>nonNullComparator</code> is
* <code>null</code>
**/
public NullComparator(final Comparator<? super E> nonNullComparator, final boolean nullsAreHigh) {

View File

@ -102,8 +102,8 @@ public class EnumerationIterator<E> implements Iterator<E> {
* If so, the first occurrence of the last returned object from this
* iterator will be removed from the collection.
*
* @exception IllegalStateException <code>next()</code> not called.
* @exception UnsupportedOperationException if no associated collection
* @throws IllegalStateException <code>next()</code> not called.
* @throws UnsupportedOperationException if no associated collection
*/
@Override
public void remove() {

View File

@ -260,7 +260,7 @@ public abstract class AbstractObjectTest extends BulkTest {
*
* @param o Object to serialize
* @param path path to write the serialized Object
* @exception IOException
* @throws IOException
*/
protected void writeExternalFormToDisk(final Serializable o, final String path) throws IOException {
final FileOutputStream fileStream = new FileOutputStream(path);
@ -277,7 +277,7 @@ public abstract class AbstractObjectTest extends BulkTest {
*
* @param o Object to convert to bytes
* @return serialized form of the Object
* @exception IOException
* @throws IOException
*/
protected byte[] writeExternalFormToBytes(final Serializable o) throws IOException {
final ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
@ -292,8 +292,8 @@ public abstract class AbstractObjectTest extends BulkTest {
*
* @param path path to the serialized Object
* @return the Object at the given path
* @exception IOException
* @exception ClassNotFoundException
* @throws IOException
* @throws ClassNotFoundException
*/
protected Object readExternalFormFromDisk(final String path) throws IOException, ClassNotFoundException {
final FileInputStream stream = new FileInputStream(path);
@ -310,8 +310,8 @@ public abstract class AbstractObjectTest extends BulkTest {
*
* @param b byte array containing a serialized Object
* @return Object contained in the bytes
* @exception IOException
* @exception ClassNotFoundException
* @throws IOException
* @throws ClassNotFoundException
*/
protected Object readExternalFormFromBytes(final byte[] b) throws IOException, ClassNotFoundException {
final ByteArrayInputStream stream = new ByteArrayInputStream(b);