Skip to content

Commit 62721ec

Browse files
authored
Merge pull request Snailclimb#2101 from Conquers/main
Update proxy.md
2 parents ef45856 + 84737ec commit 62721ec

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)