mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-06 01:58:24 +00:00
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:
parent
61cba9d9a4
commit
ffbc41e725
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user