Remove sync lock for lazy target (#13220)

This commit is contained in:
Albumen Kevin 2023-10-18 11:52:28 +08:00 committed by GitHub
parent 91594eccfa
commit c5efc65a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -47,11 +47,7 @@ public class LazyTargetInvocationHandler implements InvocationHandler {
}
if (target == null) {
synchronized (this) {
if (target == null) {
target = lazyTargetSource.getTarget();
}
}
target = lazyTargetSource.getTarget();
}
if (method.getDeclaringClass().isInstance(target)) {
try {