Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.0RC2
-
None
-
None
Description
The lack of Guard conditions on logging statements that concatenate objects to create the logging output results in unecessary StringBuffer creation when the logging level is below the threshold set.
Would be a good idea IMO to change statements like:
log.debug(getId() + " found class: " + name + " (" + clazzBytes.length + " bytes)");
to
if (log.isDebugEnabled())
{ log.debug(getId() + " found class: " + name + " (" + clazzBytes.length + " bytes)"); }