Return-Path: X-Original-To: apmail-jackrabbit-commits-archive@www.apache.org Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F349C44B3 for ; Tue, 31 May 2011 07:43:57 +0000 (UTC) Received: (qmail 80674 invoked by uid 500); 31 May 2011 07:43:24 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 80572 invoked by uid 500); 31 May 2011 07:43:22 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 80552 invoked by uid 99); 31 May 2011 07:43:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 07:43:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 07:43:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A85F92388993; Tue, 31 May 2011 07:42:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@jackrabbit.apache.org From: thomasm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110531074259.A85F92388993@eris.apache.org> 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());