Skip to content

Commit

Permalink
rename logger
Browse files Browse the repository at this point in the history
  • Loading branch information
oniatus committed Aug 28, 2016
1 parent 82fb278 commit 4a97894
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Name, Version, Module> modules = HashBasedTable.create();
private final Map<Name, Module> latestModules = Maps.newHashMap();
Expand All @@ -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(),
Expand Down Expand Up @@ -168,7 +168,7 @@ public Module getLatestModuleVersion(Name id, Version minVersion, Version maxVer
Module result = null;
for (Map.Entry<Version, Module> 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();
}
}
Expand Down

0 comments on commit 4a97894

Please sign in to comment.