Skip to content

Commit 50b4883

Browse files
committed
Revert Documentation changes
1 parent 35bdf1f commit 50b4883

File tree

2 files changed

+24
-12
lines changed

2 files changed

+24
-12
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/preface/java-configuration.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,11 +1165,14 @@ These will be passed to the AccessDecisionManager for it to make the actual deci
11651165
----
11661166
public interface BankService {
11671167
1168-
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
1168+
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
1169+
public Account readAccount(Long id);
11691170
1170-
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
1171+
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
1172+
public Account[] findAccounts();
11711173
1172-
@Secured("ROLE_TELLER") Account post(Account account, double amount);
1174+
@Secured("ROLE_TELLER")
1175+
public Account post(Account account, double amount);
11731176
}
11741177
----
11751178

@@ -1200,11 +1203,14 @@ and the equivalent Java code would be
12001203
----
12011204
public interface BankService {
12021205
1203-
@PreAuthorize("isAnonymous()") Account readAccount(Long id);
1206+
@PreAuthorize("isAnonymous()")
1207+
public Account readAccount(Long id);
12041208
1205-
@PreAuthorize("isAnonymous()") Account[] findAccounts();
1209+
@PreAuthorize("isAnonymous()")
1210+
public Account[] findAccounts();
12061211
1207-
@PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
1212+
@PreAuthorize("hasAuthority('ROLE_TELLER')")
1213+
public Account post(Account account, double amount);
12081214
}
12091215
----
12101216

docs/manual/src/docs/asciidoc/_includes/servlet/preface/namespace.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,11 +763,14 @@ These will be passed to the `AccessDecisionManager` for it to make the actual de
763763
----
764764
public interface BankService {
765765
766-
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account readAccount(Long id);
766+
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
767+
public Account readAccount(Long id);
767768
768-
@Secured("IS_AUTHENTICATED_ANONYMOUSLY") Account[] findAccounts();
769+
@Secured("IS_AUTHENTICATED_ANONYMOUSLY")
770+
public Account[] findAccounts();
769771
770-
@Secured("ROLE_TELLER") Account post(Account account, double amount);
772+
@Secured("ROLE_TELLER")
773+
public Account post(Account account, double amount);
771774
}
772775
----
773776

@@ -792,11 +795,14 @@ and the equivalent Java code would be
792795
----
793796
public interface BankService {
794797
795-
@PreAuthorize("isAnonymous()") Account readAccount(Long id);
798+
@PreAuthorize("isAnonymous()")
799+
public Account readAccount(Long id);
796800
797-
@PreAuthorize("isAnonymous()") Account[] findAccounts();
801+
@PreAuthorize("isAnonymous()")
802+
public Account[] findAccounts();
798803
799-
@PreAuthorize("hasAuthority('ROLE_TELLER')") Account post(Account account, double amount);
804+
@PreAuthorize("hasAuthority('ROLE_TELLER')")
805+
public Account post(Account account, double amount);
800806
}
801807
----
802808

0 commit comments

Comments
 (0)