Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.skife.jdbi.v2.sqlobject;
 
 import  net.sf.cglib.proxy.MethodProxy;
 
 import java.util.Map;
 
 class HashCodeHandler implements Handler
    static Map<MethodHandlerhandler()
    {
        try
        {
            Map<MethodHandlerhandler = new HashMap<MethodHandler>();
            handler.put(Object.class.getMethod("hashCode"), new HashCodeHandler());
            return handler;
        }
        catch (NoSuchMethodException e)
        {
            throw new IllegalStateException("JVM error");
        }
    }
    @Override
    public Object invoke(HandleDing hObject targetObject[] args, MethodProxy mp)
    {
        return System.identityHashCode(target);
    }
New to GrepCode? Check out our FAQ X