For example: if (logger.isTraceEnabled()) { logger.debug("some log message"); }
if (logger.isTraceEnabled()) { logger.debug("some log message"); }
This inspection understands the java.util, log4j, commons-logging and slf4j logging frameworks.