Skip to content

Commit 9c0e7f5

Browse files
authored
Update proxy.md
JDK动态代理代码示例的第三点,重写invoacationHandler的invoke方法,没有加@OverRide注解
1 parent 7b0d616 commit 9c0e7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/basis/proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public class DebugInvocationHandler implements InvocationHandler {
208208
this.target = target;
209209
}
210210

211-
211+
@Override
212212
public Object invoke(Object proxy, Method method, Object[] args) throws InvocationTargetException, IllegalAccessException {
213213
//调用方法之前,我们可以添加自己的操作
214214
System.out.println("before method " + method.getName());

0 commit comments

Comments
 (0)