Fix slf4j loading (#1224)

This commit is contained in:
Luck 2018-09-20 21:17:00 +01:00
parent 834649b390
commit 5b1229c882
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -77,7 +77,7 @@ public class DependencyRegistry {
}
// don't load slf4j if it's already present
if (dependencies.contains(Dependency.SLF4J_API) || dependencies.contains(Dependency.SLF4J_SIMPLE) && slf4jPresent()) {
if ((dependencies.contains(Dependency.SLF4J_API) || dependencies.contains(Dependency.SLF4J_SIMPLE)) && slf4jPresent()) {
dependencies.remove(Dependency.SLF4J_API);
dependencies.remove(Dependency.SLF4J_SIMPLE);
}