Remove redundant throws clauses

Removes exceptions that are declared in a method's signature but never thrown by the method itself or its implementations/derivatives.
This commit is contained in:
Lars Grefer
2019-08-23 01:03:54 +02:00
parent f0515a021c
commit 34dd5fea30
418 changed files with 1146 additions and 1273 deletions

View File

@@ -34,7 +34,7 @@ public class AppRoleTests {
}
@Test
public void bitsAreCorrect() throws Exception {
public void bitsAreCorrect() {
// If this fails, someone has modified the Enum and the Datastore is probably
// corrupt!
assertThat(ADMIN.getBit()).isZero();

View File

@@ -35,12 +35,12 @@ public class GaeDataStoreUserRegistryTests {
new LocalDatastoreServiceTestConfig());
@Before
public void setUp() throws Exception {
public void setUp() {
helper.setUp();
}
@After
public void tearDown() throws Exception {
public void tearDown() {
helper.tearDown();
}