Unnecessary interface modifier
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
package bigbank;
|
||||
|
||||
public interface BankDao {
|
||||
public Account readAccount(Long id);
|
||||
Account readAccount(Long id);
|
||||
|
||||
public void createOrUpdateAccount(Account account);
|
||||
void createOrUpdateAccount(Account account);
|
||||
|
||||
public Account[] findAccounts();
|
||||
Account[] findAccounts();
|
||||
}
|
||||
|
||||
@@ -19,11 +19,11 @@ import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
public interface BankService {
|
||||
|
||||
public Account readAccount(Long id);
|
||||
Account readAccount(Long id);
|
||||
|
||||
public Account[] findAccounts();
|
||||
Account[] findAccounts();
|
||||
|
||||
@PreAuthorize("hasRole('supervisor') or "
|
||||
+ "hasRole('teller') and (#account.balance + #amount >= -#account.overdraft)")
|
||||
public Account post(Account account, double amount);
|
||||
Account post(Account account, double amount);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user