Permalink
Browse files

remove throws declarations on methods that don't throw those exceptions

  • Loading branch information...
mebigfatguy committed May 5, 2013
1 parent 90764b0 commit bfa06db1ac4755ce8dc01856eeaefebbf9c7a892
@@ -52,7 +52,7 @@
private Multimap<Range<Token>, InetAddress> rangeMap;
- public RingCache(Configuration conf) throws IOException
+ public RingCache(Configuration conf)
{
this.conf = conf;
this.partitioner = ConfigHelper.getOutputPartitioner(conf);
@@ -114,7 +114,7 @@ public void checkOutputSpecs(org.apache.hadoop.fs.FileSystem filesystem, org.apa
/** Fills the deprecated OutputFormat interface for streaming. */
@Deprecated @Override
- public ColumnFamilyRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem filesystem, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress) throws IOException
+ public ColumnFamilyRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem filesystem, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress)
{
return new ColumnFamilyRecordWriter(job, new Progressable(progress));
}
@@ -128,7 +128,7 @@ public ColumnFamilyRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem
* @throws IOException
*/
@Override
- public ColumnFamilyRecordWriter getRecordWriter(final TaskAttemptContext context) throws IOException, InterruptedException
+ public ColumnFamilyRecordWriter getRecordWriter(final TaskAttemptContext context) throws InterruptedException
{
return new ColumnFamilyRecordWriter(context);
}
@@ -84,21 +84,20 @@
* mutations, and the ring cache for the given keyspace.
*
* @param context the task attempt context
- * @throws IOException
*/
- ColumnFamilyRecordWriter(TaskAttemptContext context) throws IOException
+ ColumnFamilyRecordWriter(TaskAttemptContext context)
{
this(context.getConfiguration());
this.progressable = new Progressable(context);
}
- ColumnFamilyRecordWriter(Configuration conf, Progressable progressable) throws IOException
+ ColumnFamilyRecordWriter(Configuration conf, Progressable progressable)
{
this(conf);
this.progressable = progressable;
}
- ColumnFamilyRecordWriter(Configuration conf) throws IOException
+ ColumnFamilyRecordWriter(Configuration conf)
{
this.conf = conf;
this.ringCache = new RingCache(conf);
@@ -17,7 +17,6 @@
*/
package org.apache.cassandra.client;
-import java.io.IOException;
import java.net.InetAddress;
import java.nio.ByteBuffer;
import java.util.Collection;
@@ -46,7 +45,7 @@
private Cassandra.Client thriftClient;
private Configuration conf;
- public TestRingCache(String keyspace) throws IOException
+ public TestRingCache(String keyspace)
{
ConfigHelper.setOutputColumnFamily(conf, keyspace, "Standard1");
ringCache = new RingCache(conf);

0 comments on commit bfa06db

Please sign in to comment.