SpringSource/spring-framework — pull request #252 by dharkness (2013-03-13 04:00:51+00:00)
Title: Compare Kind references before checking log levels

Assuming reference comparisons are much quicker than checking
the resolved logger level via the isFooEnabled() methods, reverse
the nested `if()` tests. Also, since the reference can match only
one of the instances, use `else if` to short-circuit the search.

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.