Unnecessary interface modifier

This commit is contained in:
Lars Grefer
2019-08-09 00:42:35 +02:00
parent 40bee457f9
commit d9c1f03b84
23 changed files with 63 additions and 75 deletions

View File

@@ -1165,14 +1165,11 @@ These will be passed to the AccessDecisionManager for it to make the actual deci
----
public interface BankService {
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account readAccount(Long id);
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account[] findAccounts();
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
@Secured("ROLE_TELLER")
public Account post(Account account, double amount);
@Secured("ROLE_TELLER") Account post(Account account, double amount);
}
----
@@ -1203,14 +1200,11 @@ and the equivalent Java code would be
----
public interface BankService {
@PreAuthorize("isAnonymous()")
public Account readAccount(Long id);
@PreAuthorize("isAnonymous()") Account readAccount(Long id);
@PreAuthorize("isAnonymous()")
public Account[] findAccounts();
@PreAuthorize("isAnonymous()") Account[] findAccounts();
@PreAuthorize("hasAuthority('ROLE_TELLER')")
public Account post(Account account, double amount);
@PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
}
----

View File

@@ -763,14 +763,11 @@ These will be passed to the `AccessDecisionManager` for it to make the actual de
----
public interface BankService {
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account readAccount(Long id);
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
public Account[] findAccounts();
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
@Secured("ROLE_TELLER")
public Account post(Account account, double amount);
@Secured("ROLE_TELLER") Account post(Account account, double amount);
}
----
@@ -795,14 +792,11 @@ and the equivalent Java code would be
----
public interface BankService {
@PreAuthorize("isAnonymous()")
public Account readAccount(Long id);
@PreAuthorize("isAnonymous()") Account readAccount(Long id);
@PreAuthorize("isAnonymous()")
public Account[] findAccounts();
@PreAuthorize("isAnonymous()") Account[] findAccounts();
@PreAuthorize("hasAuthority('ROLE_TELLER')")
public Account post(Account account, double amount);
@PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
}
----