Skip to content

Commit

Permalink
remove unnecessary synchronized in PluginClassLoader#loadClass. #19
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Sep 15, 2021
1 parent 5141682 commit d12ba76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public PluginClassLoader(URL[] urls, ClassLoader parent, SharedService sharedSer
}

@Override
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {
synchronized (LOCK_PROVIDER.getLock(this, name)) {

// 1. loaded class
Expand Down

0 comments on commit d12ba76

Please # to comment.