You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2013/04/27 09:16:48 UTC
svn commit: r1476507 -
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java
Author: tn
Date: Sat Apr 27 07:16:48 2013
New Revision: 1476507
URL: http://svn.apache.org/r1476507
Log:
Added missing since tags
Modified:
commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java
Modified: commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java?rev=1476507&r1=1476506&r2=1476507&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java (original)
+++ commons/proper/collections/trunk/src/main/java/org/apache/commons/collections4/CollectionUtils.java Sat Apr 27 07:16:48 2013
@@ -704,6 +704,7 @@ public class CollectionUtils {
* @param collection the collection to get the input from, may be null
* @param closure the closure to perform, may be null
* @return the last element in the collection, or null if either collection or closure is null
+ * @since 4.0
*/
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Collection<T> collection,
final C closure) {
@@ -720,6 +721,7 @@ public class CollectionUtils {
* @param iterator the iterator to get the input from, may be null
* @param closure the closure to perform, may be null
* @return the last element in the collection, or null if either iterator or closure is null
+ * @since 4.0
*/
public static <T, C extends Closure<? super T>> T forAllButLastDo(final Iterator<T> iterator, final C closure) {
if (iterator != null && closure != null) {