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:
@@ -21,7 +21,7 @@ import org.springframework.util.Assert;
|
||||
public class SeedData implements InitializingBean {
|
||||
private BankDao bankDao;
|
||||
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
public void afterPropertiesSet() {
|
||||
Assert.notNull(bankDao, "bankDao cannot be null");
|
||||
bankDao.createOrUpdateAccount(new Account("rod"));
|
||||
bankDao.createOrUpdateAccount(new Account("dianne"));
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ListAccounts implements Controller {
|
||||
}
|
||||
|
||||
public ModelAndView handleRequest(HttpServletRequest request,
|
||||
HttpServletResponse response) throws Exception {
|
||||
HttpServletResponse response) {
|
||||
// Security check (this is unnecessary if Spring Security is performing the
|
||||
// authorization)
|
||||
// if (request.getUserPrincipal() == null) {
|
||||
|
||||
Reference in New Issue
Block a user