mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
Minor code cleanup in SongodaYamlConfig constructor
keeps the logger effectively final + makes Codacity' static code analysis happy
This commit is contained in:
parent
ed7b454625
commit
84515e7004
@ -52,11 +52,7 @@ public class SongodaYamlConfig extends YamlConfiguration {
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
this.file = Objects.requireNonNull(file);
|
this.file = Objects.requireNonNull(file);
|
||||||
|
this.logger = logger != null ? logger : Logger.getLogger(getClass().getName());
|
||||||
if (logger == null) {
|
|
||||||
logger = Logger.getLogger(getClass().getName());
|
|
||||||
}
|
|
||||||
this.logger = logger;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user