You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/07/11 17:22:23 UTC
[33/50] [abbrv] commons-collections git commit: Update old school
@exception with new school @throws.
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
Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-collections/commit/ec9b71b9
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/ec9b71b9
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/ec9b71b9
Branch: refs/heads/master
Commit: ec9b71b95d74f1c8a977bcaaed9cbeec8581a60a
Parents: 2ce582e
Author: Gary D. Gregory <gg...@apache.org>
Authored: Tue Jun 7 00:36:05 2016 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Tue Jun 7 00:36:05 2016 +0000
----------------------------------------------------------------------
.../collections4/comparators/ComparatorChain.java | 2 +-
.../collections4/comparators/NullComparator.java | 4 ++--
.../collections4/iterators/EnumerationIterator.java | 4 ++--
.../apache/commons/collections4/AbstractObjectTest.java | 12 ++++++------
4 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/ec9b71b9/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java b/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
index a2efd16..e9f43b9 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
@@ -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 < 0 or index >= size()
*/
public void setComparator(final int index, final Comparator<E> comparator) throws IndexOutOfBoundsException {
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/ec9b71b9/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java b/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
index 2c7c5a6..2111c34 100644
--- a/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
+++ b/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
@@ -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) {
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/ec9b71b9/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java b/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
index ceac2e9..4933eae 100644
--- a/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
@@ -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() {
http://git-wip-us.apache.org/repos/asf/commons-collections/blob/ec9b71b9/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
index 7e14413..7b6b607 100644
--- a/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
@@ -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);