See
JBAS-4934. A very minor optimization opens up the potential for introducing bugs.
There are no known EAP failures caused by this code usage, but testing with a possible upgrade to JBoss Cache showed how the usage could cause problems when small changes were made in JBC.