jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1311688 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Date Tue, 10 Apr 2012 12:00:56 GMT
Author: angela
Date: Tue Apr 10 12:00:55 2012
New Revision: 1311688

URL: http://svn.apache.org/viewvc?rev=1311688&view=rev
Log:
fix indention

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java?rev=1311688&r1=1311687&r2=1311688&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Tue Apr 10 12:00:55 2012
@@ -55,12 +55,11 @@ public class SessionImpl extends Abstrac
     private final ValueFactory valueFactory;
 
     private final GlobalContext globalContext;
+    private final SessionContext<SessionImpl> sessionContext = new Context();
 
     private NodeStateEditor editor;
     private boolean isAlive = true;
 
-    private final SessionContext<SessionImpl> sessionContext = new Context();
-
     SessionImpl(GlobalContext globalContext, Repository repository, Connection connection)
{
 
         this.globalContext = globalContext;
@@ -157,8 +156,7 @@ public class SessionImpl extends Abstrac
         try {
             NodeState newState = connection.commit(editor);
             editor = connection.getNodeStateEditor(newState);
-        }
-        catch (CommitFailedException e) {
+        } catch (CommitFailedException e) {
             throw new RepositoryException(e);
         }
     }
@@ -168,8 +166,7 @@ public class SessionImpl extends Abstrac
         checkIsAlive();
         try {
             connection.commit(connection.getNodeStateEditor(connection.getCurrentRoot()));
 // todo: need a better way to update a connection to head
-        }
-        catch (CommitFailedException e) {
+        } catch (CommitFailedException e) {
             throw new RepositoryException(e);
         }
     }
@@ -202,8 +199,7 @@ public class SessionImpl extends Abstrac
 
         try {
             connection.close();
-        }
-        catch (IOException e) {
+        } catch (IOException e) {
             log.warn("Error while closing connection", e);
         }
     }



Mime
View raw message