Fixed minor code smell in AddonClassLoader

This commit is contained in:
Florian CUNY 2019-01-18 14:59:38 +01:00
parent dfe7fc27e5
commit a392dbc8b3

View File

@ -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) {