jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1129524 - in /jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store: MutableCommit.java MutableNode.java
Date Tue, 31 May 2011 07:42:59 GMT
Author: thomasm
Date: Tue May 31 07:42:59 2011
New Revision: 1129524

URL: http://svn.apache.org/viewvc?rev=1129524&view=rev
Log:
Don't ignore exceptions.

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableCommit.java
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableNode.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableCommit.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableCommit.java?rev=1129524&r1=1129523&r2=1129524&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableCommit.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableCommit.java
Tue May 31 07:42:59 2011
@@ -21,8 +21,6 @@ import java.io.ByteArrayOutputStream;
 import java.io.DataOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
 
 /**
  *
@@ -76,7 +74,8 @@ public class MutableCommit {
             out.writeLong(commitTS);
             out.writeUTF(parentId == null ? "" : parentId);
             out.close();
-        } catch (IOException safeToIgnore) {
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
 
         return new ByteArrayInputStream(baos.toByteArray());

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableNode.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableNode.java?rev=1129524&r1=1129523&r2=1129524&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableNode.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/store/MutableNode.java
Tue May 31 07:42:59 2011
@@ -77,7 +77,8 @@ public class MutableNode {
                 out.writeUTF(entry.getValue());
             }
             out.close();
-        } catch (IOException safeToIgnore) {
+        } catch (IOException e) {
+            throw new RuntimeException(e);
         }
 
         return new ByteArrayInputStream(baos.toByteArray());



Mime
View raw message