From a392dbc8b3c9d59c48716e2a1477ad1d21427d45 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Fri, 18 Jan 2019 14:59:38 +0100 Subject: [PATCH] Fixed minor code smell in AddonClassLoader --- .../world/bentobox/bentobox/api/addons/AddonClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/addons/AddonClassLoader.java b/src/main/java/world/bentobox/bentobox/api/addons/AddonClassLoader.java index 0a8ca0762..a753a610d 100644 --- a/src/main/java/world/bentobox/bentobox/api/addons/AddonClassLoader.java +++ b/src/main/java/world/bentobox/bentobox/api/addons/AddonClassLoader.java @@ -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) {