Skip to content

Commit 84737ec

Browse files
committed
Update proxy.md
1 parent 9e566a5 commit 84737ec

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
@@ -229,7 +229,7 @@ public class DebugInvocationHandler implements InvocationHandler {
229229
public class JdkProxyFactory {
230230
public static Object getProxy(Object target) {
231231
return Proxy.newProxyInstance(
232-
target.getClass().getClassLoader(), // 目标类的类加载
232+
target.getClass().getClassLoader(), // 目标类的类加载器
233233
target.getClass().getInterfaces(), // 代理需要实现的接口,可指定多个
234234
new DebugInvocationHandler(target) // 代理对象对应的自定义 InvocationHandler
235235
);

0 commit comments

Comments
 (0)