pmd/pmd — pull request #42 by adamcin (2014-06-12 22:47:02+00:00)
Title: Add SLF4j Logger type to MoreThanOneLogger rule

We just ran into a situation where the maven-pmd-plugin running under Maven 3.0.5 has different behavior than when it runs under Maven 3.2.1, in the sense that the older Maven version does not put org.slf4j.* on the plugin classpath automatically, but in 3.2.1 it does, via plexus.core. This causes the MoreThanOneLogger rule to correctly identify the use of more than one SLF4j Logger in 3.0.5 when the SLF4j API is not on the classpath (because its name is "Logger"), but the rule fails to catch the same case when the SLF4j API is added to the classpath in 3.2.1.

This rule should apply equally to Log4j, JCL, and SLF4j Loggers.