verify #1341 pmd:GuardDebugLogging violates LOGGER.debug with format "{}"
It's a duplicate of #1224
This commit is contained in:
@ -119,6 +119,18 @@ public class Test {
|
||||
__log.debug("bla" + "",e );
|
||||
}
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description>#1341 pmd:GuardDebugLogging violates LOGGER.debug with format "{}"</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class GuardDebugFalsePositive {
|
||||
public void test() {
|
||||
String tempSelector = "a";
|
||||
LOGGER.debug("MessageSelector={}" , tempSelector);
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
Reference in New Issue
Block a user