mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
Revert "Fixed minor code smell in AddonClassLoader"
This reverts commit a392dbc8b3
.
This commit is contained in:
parent
b0ba135d1b
commit
873c12fe70
@ -121,7 +121,7 @@ public class AddonClassLoader extends URLClassLoader {
|
|||||||
|
|
||||||
// Either return the value if it exists (and != null), or try to compute one.
|
// 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.
|
// 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;
|
Class<?> computed = checkGlobal ? loader.getClassByName(key) : null;
|
||||||
|
|
||||||
if (computed == null) {
|
if (computed == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user