You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/07 00:36:05 UTC
svn commit: r1747096 - in /commons/proper/collections/trunk/src:
main/java/org/apache/commons/collections4/comparators/
main/java/org/apache/commons/collections4/iterators/
test/java/org/apache/commons/collections4/
Author: ggregory
Date: Tue Jun 7 00:36:05 2016
New Revision: 1747096
URL: http://svn.apache.org/viewvc?rev=1747096&view=rev
Log:
Update old school @exception with new school @throws.
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java?rev=1747096&r1=1747095&r2=1747096&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/ComparatorChain.java Tue Jun 7 00:36:05 2016
@@ -161,7 +161,7 @@ public class ComparatorChain<E> implemen
*
* @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 {
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java?rev=1747096&r1=1747095&r2=1747096&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/comparators/NullComparator.java Tue Jun 7 00:36:05 2016
@@ -66,7 +66,7 @@ public class NullComparator<E> implement
* 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> implement
* 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) {
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java?rev=1747096&r1=1747095&r2=1747096&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/iterators/EnumerationIterator.java Tue Jun 7 00:36:05 2016
@@ -102,8 +102,8 @@ public class EnumerationIterator<E> impl
* 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() {
Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java?rev=1747096&r1=1747095&r2=1747096&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java (original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java Tue Jun 7 00:36:05 2016
@@ -260,7 +260,7 @@ public abstract class AbstractObjectTest
*
* @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
*
* @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
*
* @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
*
* @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);