You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/10/22 03:06:50 UTC
svn commit: r1187614 -
/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java
Author: sebb
Date: Sat Oct 22 01:06:49 2011
New Revision: 1187614
URL: http://svn.apache.org/viewvc?rev=1187614&view=rev
Log:
Make return type agree with Javadoc and avoid boxing warnings
Modified:
commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java
Modified: commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java?rev=1187614&r1=1187613&r2=1187614&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java (original)
+++ commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java Sat Oct 22 01:06:49 2011
@@ -101,8 +101,8 @@ public final class Size<A> implements Un
* @param col to evaluate
* @return Integer
*/
- private int evaluate(Collection<?> col) {
- return col.size();
+ private Integer evaluate(Collection<?> col) {
+ return Integer.valueOf(col.size());
}
/**
@@ -110,8 +110,8 @@ public final class Size<A> implements Un
* @param str to evaluate
* @return Integer
*/
- private int evaluate(String str) {
- return str.length();
+ private Integer evaluate(String str) {
+ return Integer.valueOf(str.length());
}
/**
@@ -119,8 +119,8 @@ public final class Size<A> implements Un
* @param array to evaluate
* @return Integer
*/
- private int evaluateArray(Object array) {
- return Array.getLength(array);
+ private Integer evaluateArray(Object array) {
+ return Integer.valueOf(Array.getLength(array));
}
}