mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-30 22:53:39 +01:00
Fixed minor code smell in AddonClassLoader
This commit is contained in:
parent
dfe7fc27e5
commit
a392dbc8b3
@ -120,7 +120,7 @@ public class AddonClassLoader extends URLClassLoader {
|
||||
|
||||
// Either return the value if it exists (and != null), or try to compute one.
|
||||
// If the computed value is null, it won't be added to the map.
|
||||
return classes.computeIfAbsent(name, (key) -> {
|
||||
return classes.computeIfAbsent(name, key -> {
|
||||
Class<?> computed = checkGlobal ? loader.getClassByName(key) : null;
|
||||
|
||||
if (computed == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user