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:
@@ -120,7 +120,7 @@ public class GaeAuthenticationFilter extends GenericFilterBean {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws ServletException {
|
||||
public void afterPropertiesSet() {
|
||||
Assert.notNull(authenticationManager, "AuthenticationManager must be set");
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ import com.google.appengine.api.users.UserServiceFactory;
|
||||
public class GoogleAccountsAuthenticationEntryPoint implements AuthenticationEntryPoint {
|
||||
|
||||
public void commence(HttpServletRequest request, HttpServletResponse response,
|
||||
AuthenticationException authException) throws IOException, ServletException {
|
||||
AuthenticationException authException) throws IOException {
|
||||
UserService userService = UserServiceFactory.getUserService();
|
||||
|
||||
response.sendRedirect(userService.createLoginURL(request.getRequestURI()));
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user