-public static Object proxy(Class proxy, long protect) {
- return Proxy.newProxyInstance(proxy.getClassLoader(), new Class[] {proxy}, new Wrapper(protect));
+public static Object proxy(Class proxy, Wrapper wrapper) {
+ return Proxy.newProxyInstance(proxy.getClassLoader(), new Class[] {proxy}, wrapper);