Affects PMD Version:
6.42.0
Rule:
MoreThanOneLogger
https://pmd.github.io/pmd-6.42.0/pmd_rules_java_errorprone.html#morethanonelogger
Description:
Rule Violation Line
MoreThanOneLogger Class contains more than one logger. 6–10
Code Sample demonstrating the issue:
package com.kodekonveyor.authentication;
import org.mockito.Mockito;
import org.slf4j.Logger;
class PMDErrorDemonstrationTestBase {
Logger loggerService = Mockito.mock(Logger.class);
}
Expected outcome:
PMD reports a violation at line 6-10, but that's wrong. That's a false positive.
Running PMD through: Maven
Affects PMD Version:
6.42.0
Rule:
MoreThanOneLogger
https://pmd.github.io/pmd-6.42.0/pmd_rules_java_errorprone.html#morethanonelogger
Description:
Rule Violation Line
MoreThanOneLogger Class contains more than one logger. 6–10
Code Sample demonstrating the issue:
Expected outcome:
PMD reports a violation at line 6-10, but that's wrong. That's a false positive.
Running PMD through: Maven