commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1187614 - /commons/proper/functor/trunk/src/main/java/org/apache/commons/functor/core/collection/Size.java
Date Sat, 22 Oct 2011 01:06:50 GMT
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));
     }
 
 }



Mime
View raw message