updated coding rules.
[utils] / support / spring / src / main / java / org / wamblee / concurrency / spring / LockAdvice.java
index 61bd98aee9ed934c418158fd62f2c776bc72fb9a..a20a9f6577e1b37338afd075a86fc7ddc8bb6e9e 100644 (file)
@@ -30,25 +30,25 @@ public class LockAdvice implements MethodInterceptor {
     /**
      * Lock to use. 
      */
-    private Lock _lock; 
+    private Lock lock; 
     
     /**
      * Constructs lock advice.  
      * @param aLock Lock to use. 
      */
     public LockAdvice(Lock aLock) { 
-        _lock = aLock; 
+        lock = aLock; 
     }
     
     /* (non-Javadoc)
      * @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
      */
     public Object invoke(MethodInvocation aInvocation) throws Throwable {
-        _lock.acquire();
+        lock.acquire();
         try {  
             return aInvocation.proceed(); 
         } finally { 
-            _lock.release();
+            lock.release();
         }
     }