SonarQube version 7.9.2
SonarJava version 6.0.1
Code example:
} catch (EntityNotFoundException | ProcessControlException | RuntimeException e) {
LoggerFactory.getLogger(this.getClass()).warn("Private web proxy creation failed:", e);
is raising a “String contains no format specifiers.” issue.
It does not seem to pickup that e is a Throwable. Similar problem with debug(), error() methods.
The rule says:
logger.log(java.util.logging.Level.SEVERE, “Result.”, new Exception()); // compliant, parameter is an exception
Therefore the above should be compliant too.