Explicit boxing

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1132388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-06-05 12:44:13 +00:00
parent 61cba9d9a4
commit ffbc41e725
1 changed files with 2 additions and 2 deletions

View File

@ -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";