commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1188407 - in /commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter: TestFunctionProcedure.java TestUnaryFunctionUnaryProcedure.java
Date Mon, 24 Oct 2011 22:02:34 GMT
Author: sebb
Date: Mon Oct 24 22:02:34 2011
New Revision: 1188407

URL: http://svn.apache.org/viewvc?rev=1188407&view=rev
Log:
Boxing

Modified:
    commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestFunctionProcedure.java
    commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestUnaryFunctionUnaryProcedure.java

Modified: commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestFunctionProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestFunctionProcedure.java?rev=1188407&r1=1188406&r2=1188407&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestFunctionProcedure.java
(original)
+++ commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestFunctionProcedure.java
Mon Oct 24 22:02:34 2011
@@ -48,7 +48,7 @@ public class TestFunctionProcedure exten
     public void testRun() throws Exception {
         class EvaluateCounter implements Function<Integer> {
             int count = 0;
-            public Integer evaluate() { return count++; }
+            public Integer evaluate() { return Integer.valueOf(count++); }
         }
         EvaluateCounter counter = new EvaluateCounter();
         Procedure p = new FunctionProcedure(counter);

Modified: commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestUnaryFunctionUnaryProcedure.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestUnaryFunctionUnaryProcedure.java?rev=1188407&r1=1188406&r2=1188407&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestUnaryFunctionUnaryProcedure.java
(original)
+++ commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/adapter/TestUnaryFunctionUnaryProcedure.java
Mon Oct 24 22:02:34 2011
@@ -48,7 +48,7 @@ public class TestUnaryFunctionUnaryProce
     public void testRun() throws Exception {
         class EvaluateCounter implements UnaryFunction<Object, Integer> {
             int count = 0;
-            public Integer evaluate(Object a) { return count++; }
+            public Integer evaluate(Object a) { return Integer.valueOf(count++); }
         }
         EvaluateCounter counter = new EvaluateCounter();
         UnaryProcedure<Object> p = new UnaryFunctionUnaryProcedure<Object>(counter);



Mime
View raw message