You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2015/05/03 01:47:53 UTC
cassandra git commit: simplify throws clauses
Repository: cassandra
Updated Branches:
refs/heads/trunk 00cd9b9ff -> 253ce00a6
simplify throws clauses
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/253ce00a
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/253ce00a
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/253ce00a
Branch: refs/heads/trunk
Commit: 253ce00a64a59210b5a6bffc4999ce23921d73c5
Parents: 00cd9b9
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Sat May 2 19:47:36 2015 -0400
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Sat May 2 19:47:36 2015 -0400
----------------------------------------------------------------------
.../org/apache/cassandra/db/commitlog/CommitLogReplayer.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/253ce00a/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java b/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java
index 23ee9e3..b136d4b 100644
--- a/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java
+++ b/src/java/org/apache/cassandra/db/commitlog/CommitLogReplayer.java
@@ -397,7 +397,7 @@ public class CommitLogReplayer
*
* @return Whether replay should continue with the next section.
*/
- private boolean replaySyncSection(FileDataInput reader, int end, CommitLogDescriptor desc) throws IOException, FileNotFoundException
+ private boolean replaySyncSection(FileDataInput reader, int end, CommitLogDescriptor desc) throws IOException
{
/* read the logs populate Mutation and apply */
while (reader.getFilePointer() < end && !reader.isEOF())
@@ -468,8 +468,7 @@ public class CommitLogReplayer
* Deserializes and replays a commit log entry.
*/
void replayMutation(byte[] inputBuffer, int size,
- final long entryLocation, final CommitLogDescriptor desc) throws IOException,
- FileNotFoundException
+ final long entryLocation, final CommitLogDescriptor desc) throws IOException
{
FastByteArrayInputStream bufIn = new FastByteArrayInputStream(inputBuffer, 0, size);
final Mutation mutation;