From ffbc41e7253904308aa4f4c6c1e06167ed4f08e5 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sun, 5 Jun 2011 12:44:13 +0000 Subject: [PATCH] Explicit boxing git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132388 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/lang3/AnnotationUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java index 33c0e0c65..c3b995d1c 100644 --- a/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/AnnotationUtilsTest.java @@ -453,10 +453,10 @@ public void testGeneratedAnnotationEquivalentToRealAnnotation() throws Exception 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";