Category: pmd
Rule Key: pmd:GuardLogStatementJavaUtil
Whenever using a log level, one should check if the loglevel is actually enabled, or otherwise skip the associate String creation and manipulation. Example:
// Add this for performance if (log.isLoggable(Level.FINE)) { ... log.fine("This happens");