Author: manik.surtani(a)jboss.com
Date: 2008-06-25 05:32:57 -0400 (Wed, 25 Jun 2008)
New Revision: 6017
Modified:
core/trunk/src/main/java/org/jboss/cache/util/concurrent/locks/OwnableReentrantLock.java
Log:
Made currentRequestor() final so it can be inlined
Modified:
core/trunk/src/main/java/org/jboss/cache/util/concurrent/locks/OwnableReentrantLock.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/util/concurrent/locks/OwnableReentrantLock.java 2008-06-24
17:29:04 UTC (rev 6016)
+++
core/trunk/src/main/java/org/jboss/cache/util/concurrent/locks/OwnableReentrantLock.java 2008-06-25
09:32:57 UTC (rev 6017)
@@ -48,7 +48,7 @@
/**
* @return a GlobalTransaction instance if the current call is participating in a
transaction, or the current thread otherwise.
*/
- protected Object currentRequestor()
+ protected final Object currentRequestor()
{
GlobalTransaction gtx;
return (gtx = invocationContextContainer.get().getGlobalTransaction()) == null ?
Thread.currentThread() : gtx;
Show replies by date