Code example for Method

Methods: getName

0
 
    private static final long serialVersionUID = 1L;
 
    @Override 
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        if ("finalize".equals(method.getName()) && args != null && args.length == 0) {
            return null; 
        } 
 
        return super.invoke(proxy, method, args);
    } 
 
}