Remove unnecessary "throws" declarations

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201058582
This commit is contained in:
mcilwain 2018-06-18 14:25:42 -07:00 committed by Ben McIlwain
parent a7256f5edd
commit 5d80f124ca
377 changed files with 2297 additions and 2373 deletions

View file

@ -91,7 +91,7 @@ public final class LockHandlerImplTest {
}
@Test
public void testLockSucceeds() throws Exception {
public void testLockSucceeds() {
Lock lock = mock(Lock.class);
CountingCallable countingCallable = new CountingCallable();
assertThat(executeWithLocks(countingCallable, lock)).isTrue();
@ -100,7 +100,7 @@ public final class LockHandlerImplTest {
}
@Test
public void testLockSucceeds_uncheckedException() throws Exception {
public void testLockSucceeds_uncheckedException() {
Lock lock = mock(Lock.class);
Exception expectedException = new RuntimeException("test");
RuntimeException exception =
@ -129,7 +129,7 @@ public final class LockHandlerImplTest {
}
@Test
public void testLockSucceeds_checkedException() throws Exception {
public void testLockSucceeds_checkedException() {
Lock lock = mock(Lock.class);
Exception expectedException = new Exception("test");
RuntimeException exception =
@ -141,7 +141,7 @@ public final class LockHandlerImplTest {
}
@Test
public void testLockFailed() throws Exception {
public void testLockFailed() {
Lock lock = null;
CountingCallable countingCallable = new CountingCallable();
assertThat(executeWithLocks(countingCallable, lock)).isFalse();