if (LOGGER.isInfoEnabled()) {
LOGGER.info("something" + aVariable );
}
boolean isInfoEnabled = LOGGER.isInfoEnabled();
if (isInfoEnabled) {
LOGGER.info("something" + aVariable );
}
// SOME CODE
if (isInfoEnabled) {
LOGGER.info("something" + aVariable + "maybeSomethingElse");
}
And here, a major sonar rule trigger : "Use the built-in formattin to construct this argument".--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/7d03eca4-e487-4ca2-9fdb-7ec89e7a8a34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Senior Developer