You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2014/08/26 19:58:52 UTC

[5/7] git commit: CURATOR-84 - Fixed up formatting

CURATOR-84 - Fixed up formatting


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/d5f55177
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/d5f55177
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/d5f55177

Branch: refs/heads/master
Commit: d5f55177f4c7a4bd1e95d1e872d65463909a6d35
Parents: 6b19fe2
Author: Cam McKenzie <ca...@apache.org>
Authored: Thu Aug 21 07:47:00 2014 +1000
Committer: Cam McKenzie <ca...@apache.org>
Committed: Thu Aug 21 07:47:00 2014 +1000

----------------------------------------------------------------------
 .../recipes/locks/TestInterProcessMutex.java        | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/d5f55177/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java
index c116a50..453de33 100644
--- a/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java
+++ b/curator-recipes/src/test/java/org/apache/curator/framework/recipes/locks/TestInterProcessMutex.java
@@ -111,14 +111,18 @@ public class TestInterProcessMutex extends TestInterProcessMutexBase
     }
 
     @Test
-    public void testPersistentLock() throws Exception {
+    public void testPersistentLock() throws Exception
+    {
         final CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), new RetryOneTime(1));
         client.start();
 
-        try {
-            final InterProcessMutex lock = new InterProcessMutex(client, LOCK_PATH, new StandardLockInternalsDriver() {
+        try
+        {
+            final InterProcessMutex lock = new InterProcessMutex(client, LOCK_PATH, new StandardLockInternalsDriver()
+            {
                 @Override
-                public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception {
+                public String createsTheLock(CuratorFramework client, String path, byte[] lockNodeBytes) throws Exception
+                {
                     String ourPath;
                     if ( lockNodeBytes != null )
                     {
@@ -145,9 +149,9 @@ public class TestInterProcessMutex extends TestInterProcessMutexBase
             lock.release();
             Assert.assertNull(client.checkExists().forPath(actualLockPath));
         }
-        finally {
+        finally
+        {
             client.close();
         }
-
     }
 }