From 4a97894ad42c46fd17122b53116bd6750b8ba483 Mon Sep 17 00:00:00 2001 From: oniatus Date: Sun, 28 Aug 2016 09:07:36 +0200 Subject: [PATCH] rename logger --- .../java/org/terasology/module/TableModuleRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java b/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java index 88191990..05282a97 100644 --- a/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java +++ b/gestalt-module/src/main/java/org/terasology/module/TableModuleRegistry.java @@ -39,7 +39,7 @@ */ public class TableModuleRegistry implements ModuleRegistry { - private static final Logger LOG = LoggerFactory.getLogger(TableModuleRegistry.class); + private static final Logger logger = LoggerFactory.getLogger(TableModuleRegistry.class); private final Table modules = HashBasedTable.create(); private final Map latestModules = Maps.newHashMap(); @@ -55,7 +55,7 @@ public boolean add(Module module) { } return true; } else { - LOG.error("Module {}-{} already registered from {}, cannot register same module from {}", + logger.error("Module {}-{} already registered from {}, cannot register same module from {}", module.getId(), module.getVersion(), modules.get(module.getId(), module.getVersion()).getLocations(), @@ -168,7 +168,7 @@ public Module getLatestModuleVersion(Name id, Version minVersion, Version maxVer Module result = null; for (Map.Entry item : modules.row(id).entrySet()) { if (item.getKey().compareTo(minVersion) >= 0 && item.getKey().compareTo(maxVersion) < 0 - && (result == null || item.getKey().compareTo(result.getVersion()) > 0)) { + && (result == null || item.getKey().compareTo(result.getVersion()) > 0)) { result = item.getValue(); } }