commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1132388 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Date Sun, 05 Jun 2011 12:44:13 GMT
Author: sebb
Date: Sun Jun  5 12:44:13 2011
New Revision: 1132388

URL: http://svn.apache.org/viewvc?rev=1132388&view=rev
Log:
Explicit boxing

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java?rev=1132388&r1=1132387&r2=1132388&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java
Sun Jun  5 12:44:13 2011
@@ -453,10 +453,10 @@ public class AnnotationUtilsTest {
 
             public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
{
                 if ("equals".equals(method.getName()) && method.getParameterTypes().length
== 1) {
-                    return proxy == args[0];
+                    return Boolean.valueOf(proxy == args[0]);
                 }
                 if ("hashCode".equals(method.getName()) && method.getParameterTypes().length
== 0) {
-                    return System.identityHashCode(proxy);
+                    return Integer.valueOf(System.identityHashCode(proxy));
                 }
                 if ("toString".equals(method.getName()) && method.getParameterTypes().length
== 0) {
                     return "Test proxy";



Mime
View raw message