commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1435970 - in /commons/proper/collections/trunk/src/main/java/org/apache/commons/collections: iterators/TransformIterator.java iterators/UnmodifiableOrderedMapIterator.java list/AbstractLinkedList.java
Date Sun, 20 Jan 2013 21:20:22 GMT
Author: tn
Date: Sun Jan 20 21:20:22 2013
New Revision: 1435970

URL: http://svn.apache.org/viewvc?rev=1435970&view=rev
Log:
Add javadoc, minor formatting.

Modified:
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
    commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java?rev=1435970&r1=1435969&r2=1435970&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/TransformIterator.java
Sun Jan 20 21:20:22 2013
@@ -62,7 +62,8 @@ public class TransformIterator<I, O> imp
      * @param iterator  the iterator to use
      * @param transformer  the transformer to use
      */
-    public TransformIterator(final Iterator<? extends I> iterator, final Transformer<?
super I, ? extends O> transformer) {
+    public TransformIterator(final Iterator<? extends I> iterator,
+                             final Transformer<? super I, ? extends O> transformer)
{
         super();
         this.iterator = iterator;
         this.transformer = transformer;

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java?rev=1435970&r1=1435969&r2=1435970&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/iterators/UnmodifiableOrderedMapIterator.java
Sun Jan 20 21:20:22 2013
@@ -43,7 +43,9 @@ public final class UnmodifiableOrderedMa
      * @return a new unmodifiable ordered map iterator
      * @throws IllegalArgumentException if the iterator is null
      */
-    public static <K, V> OrderedMapIterator<K, V> unmodifiableOrderedMapIterator(final
OrderedMapIterator<K, V> iterator) {
+    public static <K, V> OrderedMapIterator<K, V> unmodifiableOrderedMapIterator(
+            final OrderedMapIterator<K, V> iterator) {
+
         if (iterator == null) {
             throw new IllegalArgumentException("OrderedMapIterator must not be null");
         }

Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java?rev=1435970&r1=1435969&r2=1435970&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java
(original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/list/AbstractLinkedList.java
Sun Jan 20 21:20:22 2013
@@ -594,6 +594,9 @@ public abstract class AbstractLinkedList
      * <p>
      * The first serializable subclass must call this method from
      * <code>writeObject</code>.
+     * 
+     * @param outputStream  the stream to write the object to
+     * @throws IOException  if anything goes wrong
      */
     protected void doWriteObject(final ObjectOutputStream outputStream) throws IOException
{
         // Write the size so we know how many nodes to read back
@@ -608,6 +611,10 @@ public abstract class AbstractLinkedList
      * <p>
      * The first serializable subclass must call this method from
      * <code>readObject</code>.
+     * 
+     * @param inputStream  the stream to read the object from
+     * @throws IOException  if any error occurs while reading from the stream
+     * @throws ClassNotFoundException  if a class read from the stream can not be loaded
      */
     @SuppressWarnings("unchecked")
     protected void doReadObject(final ObjectInputStream inputStream) throws IOException,
ClassNotFoundException {
@@ -773,7 +780,8 @@ public abstract class AbstractLinkedList
          * @param fromIndex  the index to start at
          * @throws IndexOutOfBoundsException if fromIndex is less than 0 or greater than
the size of the list
          */
-        protected LinkedListIterator(final AbstractLinkedList<E> parent, final int
fromIndex) throws IndexOutOfBoundsException {
+        protected LinkedListIterator(final AbstractLinkedList<E> parent, final int
fromIndex)
+                throws IndexOutOfBoundsException {
             super();
             this.parent = parent;
             this.expectedModCount = parent.modCount;



Mime
View raw message