Remove redundant synchronized (#11811)

This commit is contained in:
kanghailin 2023-03-13 20:55:41 +08:00 committed by GitHub
parent 03562680ee
commit e6ee6088bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -228,11 +228,7 @@ public class ReferenceConfig<T> extends ReferenceConfigBase<T> {
// ensure start module, compatible with old api usage
getScopeModel().getDeployer().start();
synchronized (this) {
if (ref == null) {
init();
}
}
init();
}
return ref;