S3457 False positive on SFL4J log statement with marker argument

Tested on Sonarqube community edition 7.5 with SonarJava 5.10.1.

The following code raises an issue, but should not raise an issue, because the “message” has no placeholders. Statement without the marker argument raises no issue as expected.

org.slf4j.Logger slf4jLog;
org.slf4j.Marker marker;

slf4jLog.debug(marker, "message");

Thanks for the feedback! I created a ticket https://jira.sonarsource.com/browse/SONARJAVA-3044

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.