Minor code cleanup in SongodaYamlConfig constructor

keeps the logger effectively final + makes Codacity' static code analysis happy
This commit is contained in:
Christian Koop 2022-06-26 13:57:12 +02:00
parent ed7b454625
commit 84515e7004
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -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;
} }
/** /**