Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

don't declare throwing exceptions that aren't thrown

  • Loading branch information...
commit f1c9bc612e2df5ffacec0debedb2021f1a9171e7 1 parent 08df0b8
Dave Brosius authored May 07, 2013

Showing 28 changed files with 46 additions and 57 deletions. Show diff stats Hide diff stats

  1. 2  src/java/org/apache/cassandra/cli/CliMain.java
  2. 2  src/java/org/apache/cassandra/cql/CFPropDefs.java
  3. 4  src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java
  4. 2  src/java/org/apache/cassandra/cql/DropIndexStatement.java
  5. 4  src/java/org/apache/cassandra/cql/QueryProcessor.java
  6. 2  src/java/org/apache/cassandra/cql3/KSPropDefs.java
  7. 4  src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
  8. 2  src/java/org/apache/cassandra/cql3/statements/DropIndexStatement.java
  9. 2  src/java/org/apache/cassandra/db/BatchlogManager.java
  10. 2  src/java/org/apache/cassandra/db/ColumnFamilySerializer.java
  11. 5  src/java/org/apache/cassandra/db/DefsTable.java
  12. 2  src/java/org/apache/cassandra/db/HintedHandOffManager.java
  13. 8  src/java/org/apache/cassandra/db/Table.java
  14. 13  src/java/org/apache/cassandra/db/compaction/PrecompactedRow.java
  15. 2  src/java/org/apache/cassandra/db/compaction/Scrubber.java
  16. 6  src/java/org/apache/cassandra/hadoop/BulkRecordWriter.java
  17. 2  src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
  18. 2  src/java/org/apache/cassandra/io/sstable/SSTableIdentityIterator.java
  19. 6  src/java/org/apache/cassandra/io/sstable/SSTableLoader.java
  20. 2  src/java/org/apache/cassandra/net/IncomingTcpConnection.java
  21. 4  src/java/org/apache/cassandra/service/StorageService.java
  22. 2  src/java/org/apache/cassandra/streaming/StreamIn.java
  23. 1  src/java/org/apache/cassandra/thrift/TCustomServerSocket.java
  24. 2  src/java/org/apache/cassandra/tools/BulkLoader.java
  25. 4  src/java/org/apache/cassandra/tools/NodeCmd.java
  26. 12  src/java/org/apache/cassandra/tools/NodeProbe.java
  27. 2  src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
  28. 2  test/unit/org/apache/cassandra/cli/CliTest.java
2  src/java/org/apache/cassandra/cli/CliMain.java
@@ -198,7 +198,7 @@ public static void updateCompletor(Set<String> candidates)
198 198
         completer.setCandidateStrings(strs);
199 199
     }
200 200
 
201  
-    public static void processStatement(String query) throws CharacterCodingException, ClassNotFoundException, TException, TimedOutException, NotFoundException, InvalidRequestException, NoSuchFieldException, UnavailableException, IllegalAccessException, InstantiationException
  201
+    public static void processStatement(String query) throws CharacterCodingException, TException, TimedOutException, NotFoundException, InvalidRequestException, NoSuchFieldException, UnavailableException, IllegalAccessException, InstantiationException
202 202
     {
203 203
         cliClient.executeCLIStatement(query);
204 204
     }
2  src/java/org/apache/cassandra/cql/CFPropDefs.java
@@ -236,7 +236,7 @@ public String getPropertyString(String key, String defaultValue)
236 236
     }
237 237
 
238 238
     // Return a property value, typed as a Boolean
239  
-    public Boolean getPropertyBoolean(String key, Boolean defaultValue) throws InvalidRequestException
  239
+    public Boolean getPropertyBoolean(String key, Boolean defaultValue)
240 240
     {
241 241
         String value = properties.get(key);
242 242
         return (value == null) ? defaultValue : value.toLowerCase().matches("(1|true|yes)");
4  src/java/org/apache/cassandra/cql/CreateColumnFamilyStatement.java
@@ -161,7 +161,7 @@ public String getName()
161 161
      * @return a CFMetaData instance corresponding to the values parsed from this statement
162 162
      * @throws InvalidRequestException on failure to validate parsed parameters
163 163
      */
164  
-    public CFMetaData getCFMetaData(String keyspace, List<ByteBuffer> variables) throws InvalidRequestException, ConfigurationException
  164
+    public CFMetaData getCFMetaData(String keyspace, List<ByteBuffer> variables) throws InvalidRequestException
165 165
     {
166 166
         validate(variables);
167 167
 
@@ -223,7 +223,7 @@ private String getPropertyString(String key, String defaultValue)
223 223
         return cfProps.getPropertyString(key, defaultValue);
224 224
     }
225 225
 
226  
-    private Boolean getPropertyBoolean(String key, Boolean defaultValue) throws InvalidRequestException
  226
+    private Boolean getPropertyBoolean(String key, Boolean defaultValue)
227 227
     {
228 228
         return cfProps.getPropertyBoolean(key, defaultValue);
229 229
     }
2  src/java/org/apache/cassandra/cql/DropIndexStatement.java
@@ -45,7 +45,7 @@ public CFMetaData generateCFMetadataUpdate() throws InvalidRequestException
45 45
         return updateCFMetadata(findIndexedCF());
46 46
     }
47 47
 
48  
-    private CFMetaData updateCFMetadata(CFMetaData cfm) throws InvalidRequestException
  48
+    private CFMetaData updateCFMetadata(CFMetaData cfm)
49 49
     {
50 50
         ColumnDefinition column = findIndexedColumn(cfm);
51 51
         assert column != null;
4  src/java/org/apache/cassandra/cql/QueryProcessor.java
@@ -23,8 +23,6 @@
23 23
 import java.util.*;
24 24
 import java.util.concurrent.TimeoutException;
25 25
 
26  
-import com.google.common.base.Predicates;
27  
-import com.google.common.collect.Maps;
28 26
 import org.slf4j.Logger;
29 27
 import org.slf4j.LoggerFactory;
30 28
 
@@ -764,7 +762,7 @@ public static CqlResult process(String queryString, ThriftClientState clientStat
764 762
     }
765 763
 
766 764
     public static CqlPreparedResult prepare(String queryString, ThriftClientState clientState)
767  
-    throws InvalidRequestException, SyntaxException
  765
+    throws SyntaxException
768 766
     {
769 767
         logger.trace("CQL QUERY: {}", queryString);
770 768
 
2  src/java/org/apache/cassandra/cql3/KSPropDefs.java
@@ -42,7 +42,7 @@
42 42
 
43 43
     private String strategyClass;
44 44
 
45  
-    public void validate() throws ConfigurationException, SyntaxException
  45
+    public void validate() throws SyntaxException
46 46
     {
47 47
         validate(keywords, obsoleteKeywords);
48 48
 
4  src/java/org/apache/cassandra/cql3/statements/CreateColumnFamilyStatement.java
@@ -79,7 +79,7 @@ public void checkAccess(ClientState state) throws UnauthorizedException, Invalid
79 79
     }
80 80
 
81 81
     // Column definitions
82  
-    private Map<ByteBuffer, ColumnDefinition> getColumns() throws InvalidRequestException
  82
+    private Map<ByteBuffer, ColumnDefinition> getColumns()
83 83
     {
84 84
         Map<ByteBuffer, ColumnDefinition> columnDefs = new HashMap<ByteBuffer, ColumnDefinition>();
85 85
         Integer componentIndex = null;
@@ -340,7 +340,7 @@ public RawStatement(CFName name)
340 340
             return new ParsedStatement.Prepared(stmt);
341 341
         }
342 342
 
343  
-        private AbstractType<?> getTypeAndRemove(Map<ColumnIdentifier, AbstractType> columns, ColumnIdentifier t) throws InvalidRequestException, ConfigurationException
  343
+        private AbstractType<?> getTypeAndRemove(Map<ColumnIdentifier, AbstractType> columns, ColumnIdentifier t) throws InvalidRequestException
344 344
         {
345 345
             AbstractType type = columns.get(t);
346 346
             if (type == null)
2  src/java/org/apache/cassandra/cql3/statements/DropIndexStatement.java
@@ -55,7 +55,7 @@ public void announceMigration() throws InvalidRequestException, ConfigurationExc
55 55
         MigrationManager.announceColumnFamilyUpdate(updatedCfm, false);
56 56
     }
57 57
 
58  
-    private CFMetaData updateCFMetadata(CFMetaData cfm) throws InvalidRequestException
  58
+    private CFMetaData updateCFMetadata(CFMetaData cfm)
59 59
     {
60 60
         ColumnDefinition column = findIndexedColumn(cfm);
61 61
         assert column != null;
2  src/java/org/apache/cassandra/db/BatchlogManager.java
@@ -225,7 +225,7 @@ private static void writeHintsForSerializedMutations(ByteBuffer data) throws IOE
225 225
             writeHintsForMutation(RowMutation.serializer.deserialize(in, VERSION));
226 226
     }
227 227
 
228  
-    private static void writeHintsForMutation(RowMutation mutation) throws IOException
  228
+    private static void writeHintsForMutation(RowMutation mutation)
229 229
     {
230 230
         String table = mutation.getTable();
231 231
         Token tk = StorageService.getPartitioner().getToken(mutation.key());
2  src/java/org/apache/cassandra/db/ColumnFamilySerializer.java
@@ -170,7 +170,7 @@ public ColumnFamily deserializeFromSSTable(DataInput in, Descriptor.Version vers
170 170
         throw new UnsupportedOperationException();
171 171
     }
172 172
 
173  
-    public void deserializeColumnsFromSSTable(DataInput in, ColumnFamily cf, int size, ColumnSerializer.Flag flag, int expireBefore, Descriptor.Version version) throws IOException
  173
+    public void deserializeColumnsFromSSTable(DataInput in, ColumnFamily cf, int size, ColumnSerializer.Flag flag, int expireBefore, Descriptor.Version version)
174 174
     {
175 175
         Iterator<OnDiskAtom> iter = cf.metadata().getOnDiskIterator(in, size, flag, expireBefore, version);
176 176
         while (iter.hasNext())
5  src/java/org/apache/cassandra/db/DefsTable.java
@@ -327,7 +327,6 @@ public static synchronized void mergeSchema(Collection<RowMutation> mutations) t
327 327
     }
328 328
 
329 329
     private static void mergeColumnFamilies(Map<DecoratedKey, ColumnFamily> old, Map<DecoratedKey, ColumnFamily> updated)
330  
-            throws ConfigurationException, IOException
331 330
     {
332 331
         // calculate the difference between old and new states (note that entriesOnlyLeft() will be always empty)
333 332
         MapDifference<DecoratedKey, ColumnFamily> diff = Maps.difference(old, updated);
@@ -454,7 +453,7 @@ private static void updateColumnFamily(CFMetaData newState)
454 453
         }
455 454
     }
456 455
 
457  
-    private static void dropKeyspace(String ksName) throws IOException
  456
+    private static void dropKeyspace(String ksName)
458 457
     {
459 458
         KSMetaData ksm = Schema.instance.getKSMetaData(ksName);
460 459
         String snapshotName = Table.getTimestampedSnapshotName(ksName);
@@ -485,7 +484,7 @@ private static void dropKeyspace(String ksName) throws IOException
485 484
         }
486 485
     }
487 486
 
488  
-    private static void dropColumnFamily(String ksName, String cfName) throws IOException
  487
+    private static void dropColumnFamily(String ksName, String cfName)
489 488
     {
490 489
         KSMetaData ksm = Schema.instance.getKSMetaData(ksName);
491 490
         assert ksm != null;
2  src/java/org/apache/cassandra/db/HintedHandOffManager.java
@@ -210,7 +210,7 @@ public void run()
210 210
     }
211 211
 
212 212
     @VisibleForTesting
213  
-    protected Future<?> compact() throws ExecutionException, InterruptedException
  213
+    protected Future<?> compact()
214 214
     {
215 215
         hintStore.forceBlockingFlush();
216 216
         ArrayList<Descriptor> descriptors = new ArrayList<Descriptor>();
8  src/java/org/apache/cassandra/db/Table.java
@@ -118,12 +118,12 @@ private static Table open(String table, Schema schema, boolean loadSSTables)
118 118
         return tableInstance;
119 119
     }
120 120
 
121  
-    public static Table clear(String table) throws IOException
  121
+    public static Table clear(String table)
122 122
     {
123 123
         return clear(table, Schema.instance);
124 124
     }
125 125
 
126  
-    public static Table clear(String table, Schema schema) throws IOException
  126
+    public static Table clear(String table, Schema schema)
127 127
     {
128 128
         synchronized (Table.class)
129 129
         {
@@ -281,7 +281,7 @@ public void createReplicationStrategy(KSMetaData ksm)
281 281
     }
282 282
 
283 283
     // best invoked on the compaction mananger.
284  
-    public void dropCf(UUID cfId) throws IOException
  284
+    public void dropCf(UUID cfId)
285 285
     {
286 286
         assert columnFamilyStores.containsKey(cfId);
287 287
         ColumnFamilyStore cfs = columnFamilyStores.remove(cfId);
@@ -292,7 +292,7 @@ public void dropCf(UUID cfId) throws IOException
292 292
     }
293 293
 
294 294
     // disassociate a cfs from this table instance.
295  
-    private void unloadCf(ColumnFamilyStore cfs) throws IOException
  295
+    private void unloadCf(ColumnFamilyStore cfs)
296 296
     {
297 297
         cfs.forceBlockingFlush();
298 298
         cfs.invalidate();
13  src/java/org/apache/cassandra/db/compaction/PrecompactedRow.java
@@ -109,16 +109,9 @@ private static ColumnFamily merge(List<SSTableIdentityIterator> rows, Compaction
109 109
         List<CloseableIterator<Column>> data = new ArrayList<CloseableIterator<Column>>(rows.size());
110 110
         for (SSTableIdentityIterator row : rows)
111 111
         {
112  
-            try
113  
-            {
114  
-                ColumnFamily cf = row.getColumnFamilyWithColumns(ArrayBackedSortedColumns.factory);
115  
-                returnCF.delete(cf);
116  
-                data.add(FBUtilities.closeableIterator(cf.iterator()));
117  
-            }
118  
-            catch (IOException e)
119  
-            {
120  
-                throw new RuntimeException(e);
121  
-            }
  112
+            ColumnFamily cf = row.getColumnFamilyWithColumns(ArrayBackedSortedColumns.factory);
  113
+            returnCF.delete(cf);
  114
+            data.add(FBUtilities.closeableIterator(cf.iterator()));
122 115
         }
123 116
 
124 117
         merge(returnCF, data, controller.cfs.indexManager.updaterFor(rows.get(0).getKey()));
2  src/java/org/apache/cassandra/db/compaction/Scrubber.java
@@ -98,7 +98,7 @@ public Scrubber(ColumnFamilyStore cfs, SSTableReader sstable, OutputHandler outp
98 98
         this.scrubInfo = new ScrubInfo(dataFile, sstable);
99 99
     }
100 100
 
101  
-    public void scrub() throws IOException
  101
+    public void scrub()
102 102
     {
103 103
         outputHandler.output("Scrubbing " + sstable);
104 104
         try
6  src/java/org/apache/cassandra/hadoop/BulkRecordWriter.java
@@ -79,20 +79,20 @@
79 79
     private CFType cfType;
80 80
     private ColType colType;
81 81
 
82  
-    BulkRecordWriter(TaskAttemptContext context) throws IOException
  82
+    BulkRecordWriter(TaskAttemptContext context)
83 83
     {
84 84
         this(context.getConfiguration());
85 85
         this.progress = new Progressable(context);
86 86
     }
87 87
 
88 88
 
89  
-    BulkRecordWriter(Configuration conf, Progressable progress) throws IOException
  89
+    BulkRecordWriter(Configuration conf, Progressable progress)
90 90
     {
91 91
         this(conf);
92 92
         this.progress = progress;
93 93
     }
94 94
 
95  
-    BulkRecordWriter(Configuration conf) throws IOException
  95
+    BulkRecordWriter(Configuration conf)
96 96
     {
97 97
         Config.setClientMode(true);
98 98
         Config.setOutboundBindAny(true);
2  src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
@@ -516,7 +516,7 @@ private void setLocationFromUri(String location) throws IOException
516 516
         }
517 517
     }
518 518
 
519  
-    private void setConnectionInformation() throws IOException
  519
+    private void setConnectionInformation()
520 520
     {
521 521
         if (System.getenv(PIG_RPC_PORT) != null)
522 522
         {
2  src/java/org/apache/cassandra/io/sstable/SSTableIdentityIterator.java
@@ -200,7 +200,7 @@ public String getPath()
200 200
         }
201 201
     }
202 202
 
203  
-    public ColumnFamily getColumnFamilyWithColumns(ColumnFamily.Factory containerFactory) throws IOException
  203
+    public ColumnFamily getColumnFamilyWithColumns(ColumnFamily.Factory containerFactory)
204 204
     {
205 205
         assert inputWithTracker.getBytesRead() == headerSize();
206 206
         ColumnFamily cf = columnFamily.cloneMeShallow(containerFactory, false);
6  src/java/org/apache/cassandra/io/sstable/SSTableLoader.java
@@ -107,12 +107,12 @@ public boolean accept(File dir, String name)
107 107
         return sstables;
108 108
     }
109 109
 
110  
-    public LoaderFuture stream() throws IOException
  110
+    public LoaderFuture stream()
111 111
     {
112 112
         return stream(Collections.<InetAddress>emptySet());
113 113
     }
114 114
 
115  
-    public LoaderFuture stream(Set<InetAddress> toIgnore) throws IOException
  115
+    public LoaderFuture stream(Set<InetAddress> toIgnore)
116 116
     {
117 117
         client.init(keyspace);
118 118
 
@@ -289,7 +289,7 @@ protected void setPartitioner(String partclass) throws ConfigurationException
289 289
             setPartitioner(FBUtilities.newPartitioner(partclass));
290 290
         }
291 291
 
292  
-        protected void setPartitioner(IPartitioner partitioner) throws ConfigurationException
  292
+        protected void setPartitioner(IPartitioner partitioner)
293 293
         {
294 294
             this.partitioner = partitioner;
295 295
             DatabaseDescriptor.setPartitioner(partitioner);
2  src/java/org/apache/cassandra/net/IncomingTcpConnection.java
@@ -136,7 +136,7 @@ private void handleModernVersion(int version, int header) throws IOException
136 136
         }
137 137
     }
138 138
 
139  
-    private void handleLegacyVersion(int version) throws IOException
  139
+    private void handleLegacyVersion(int version)
140 140
     {
141 141
         throw new UnsupportedOperationException("Unable to read obsolete message version " + version + "; the earliest version supported is 1.2.0");
142 142
     }
4  src/java/org/apache/cassandra/service/StorageService.java
@@ -374,7 +374,7 @@ public boolean isInitialized()
374 374
         return initialized;
375 375
     }
376 376
 
377  
-    public synchronized void initClient() throws IOException, ConfigurationException
  377
+    public synchronized void initClient() throws ConfigurationException
378 378
     {
379 379
         // We don't wait, because we're going to actually try to work on
380 380
         initClient(0);
@@ -407,7 +407,7 @@ public synchronized void initClient() throws IOException, ConfigurationException
407 407
         }
408 408
     }
409 409
 
410  
-    public synchronized void initClient(int ringDelay) throws IOException, ConfigurationException
  410
+    public synchronized void initClient(int ringDelay) throws ConfigurationException
411 411
     {
412 412
         if (initialized)
413 413
         {
2  src/java/org/apache/cassandra/streaming/StreamIn.java
@@ -69,7 +69,7 @@ public static void requestRanges(InetAddress source, String tableName, Collectio
69 69
     }
70 70
 
71 71
     /** Translates remote files to local files by creating a local sstable per remote sstable. */
72  
-    public static PendingFile getContextMapping(PendingFile remote) throws IOException
  72
+    public static PendingFile getContextMapping(PendingFile remote)
73 73
     {
74 74
         /* Create a local sstable for each remote sstable */
75 75
         Descriptor remotedesc = remote.desc;
1  src/java/org/apache/cassandra/thrift/TCustomServerSocket.java
@@ -81,7 +81,6 @@ public TCustomServerSocket(InetSocketAddress bindAddr, boolean keepAlive, Intege
81 81
     }
82 82
 
83 83
     public TCustomServerSocket(ServerSocket socket, boolean keepAlive, Integer sendBufferSize, Integer recvBufferSize)
84  
-            throws TTransportException
85 84
     {
86 85
         this.serverSocket = socket;
87 86
         this.keepAlive = keepAlive;
2  src/java/org/apache/cassandra/tools/BulkLoader.java
@@ -56,7 +56,7 @@
56 56
     private static final String PASSWD_OPTION = "password";
57 57
     private static final String THROTTLE_MBITS = "throttle";
58 58
 
59  
-    public static void main(String args[]) throws IOException
  59
+    public static void main(String args[])
60 60
     {
61 61
         LoaderOptions options = LoaderOptions.parseArgs(args);
62 62
         try
4  src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -922,7 +922,7 @@ private void printIsThriftServerRunning(PrintStream outs)
922 922
         outs.println(probe.isThriftServerRunning() ? "running" : "not running");
923 923
     }
924 924
 
925  
-    public static void main(String[] args) throws IOException, InterruptedException, ConfigurationException, ParseException
  925
+    public static void main(String[] args) throws IOException, InterruptedException, ParseException
926 926
     {
927 927
         CommandLineParser parser = new PosixParser();
928 928
         ToolCommandLine cmd = null;
@@ -1280,7 +1280,7 @@ private static void complainNonzeroArgs(String[] args, NodeCommand cmd)
1280 1280
         }
1281 1281
     }
1282 1282
 
1283  
-    private static void handleSnapshots(NodeCommand nc, String tag, String[] cmdArgs, String columnFamily, NodeProbe probe) throws InterruptedException, IOException
  1283
+    private static void handleSnapshots(NodeCommand nc, String tag, String[] cmdArgs, String columnFamily, NodeProbe probe) throws IOException
1284 1284
     {
1285 1285
         String[] keyspaces = Arrays.copyOfRange(cmdArgs, 0, cmdArgs.length);
1286 1286
         System.out.print("Requested snapshot for: ");
12  src/java/org/apache/cassandra/tools/NodeProbe.java
@@ -88,7 +88,7 @@
88 88
      * @param port TCP port of the remote JMX agent
89 89
      * @throws IOException on connection failures
90 90
      */
91  
-    public NodeProbe(String host, int port, String username, String password) throws IOException, InterruptedException
  91
+    public NodeProbe(String host, int port, String username, String password) throws IOException
92 92
     {
93 93
         assert username != null && !username.isEmpty() && password != null && !password.isEmpty()
94 94
                : "neither username nor password can be blank";
@@ -107,7 +107,7 @@ public NodeProbe(String host, int port, String username, String password) throws
107 107
      * @param port TCP port of the remote JMX agent
108 108
      * @throws IOException on connection failures
109 109
      */
110  
-    public NodeProbe(String host, int port) throws IOException, InterruptedException
  110
+    public NodeProbe(String host, int port) throws IOException
111 111
     {
112 112
         this.host = host;
113 113
         this.port = port;
@@ -120,7 +120,7 @@ public NodeProbe(String host, int port) throws IOException, InterruptedException
120 120
      * @param host hostname or IP address of the JMX agent
121 121
      * @throws IOException on connection failures
122 122
      */
123  
-    public NodeProbe(String host) throws IOException, InterruptedException
  123
+    public NodeProbe(String host) throws IOException
124 124
     {
125 125
         this.host = host;
126 126
         this.port = defaultPort;
@@ -265,12 +265,12 @@ public void forceTableRepairRange(String beginToken, String endToken, String tab
265 265
         ssProxy.forceTableRepairRange(beginToken, endToken, tableName, isSequential, isLocal, columnFamilies);
266 266
     }
267 267
 
268  
-    public void invalidateKeyCache() throws IOException
  268
+    public void invalidateKeyCache()
269 269
     {
270 270
         cacheService.invalidateKeyCache();
271 271
     }
272 272
 
273  
-    public void invalidateRowCache() throws IOException
  273
+    public void invalidateRowCache()
274 274
     {
275 275
         cacheService.invalidateRowCache();
276 276
     }
@@ -456,7 +456,7 @@ public void decommission() throws InterruptedException
456 456
         ssProxy.decommission();
457 457
     }
458 458
 
459  
-    public void move(String newToken) throws IOException, InterruptedException
  459
+    public void move(String newToken) throws IOException
460 460
     {
461 461
         ssProxy.move(newToken);
462 462
     }
2  src/java/org/apache/cassandra/tools/SSTableMetadataViewer.java
@@ -32,7 +32,7 @@
32 32
     /**
33 33
      * @param args a list of sstables whose metadata we're interested in
34 34
      */
35  
-    public static void main(String[] args) throws IOException, ConfigurationException
  35
+    public static void main(String[] args) throws IOException
36 36
     {
37 37
         PrintStream out = System.out;
38 38
         if (args.length == 0)
2  test/unit/org/apache/cassandra/cli/CliTest.java
@@ -217,7 +217,7 @@
217 217
     };
218 218
 
219 219
     @Test
220  
-    public void testCli() throws IOException, TException, ConfigurationException, ClassNotFoundException, TimedOutException, NotFoundException, SchemaDisagreementException, NoSuchFieldException, InvalidRequestException, UnavailableException, InstantiationException, IllegalAccessException
  220
+    public void testCli() throws IOException, TException, TimedOutException, NotFoundException, SchemaDisagreementException, NoSuchFieldException, InvalidRequestException, UnavailableException, InstantiationException, IllegalAccessException
221 221
     {
222 222
         Schema.instance.clear(); // Schema are now written on disk and will be reloaded
223 223
         new EmbeddedCassandraService().start();

0 notes on commit f1c9bc6

Please sign in to comment.
Something went wrong with that request. Please try again.