> -----Original Message----- > From: Rene Eigenheer [mailto:[EMAIL PROTECTED]] > I often see debug messages code like: > if (log.isDebugEnabled() { > log.debug("debug message"); > } > and sometimes: > log.debug("debug message"); // let the log class decide > whether it has to > do debug > which of the two versions do you prefer - why?
The latter incurs a String creation; the first does not. Cheers, Laird -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>