Skip to content

Commit a9aefaf

Browse files
Marcono1234jzheaux
authored andcommitted
Fix malformed list in "Using Method Parameters" documentation
1 parent 9f0b2a2 commit a9aefaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/modules/ROOT/pages/servlet/authorization/method-security.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ The intention of this expression is to require that the current `Authentication`
18041804
+
18051805
Behind the scenes, this is implemented by using `AnnotationParameterNameDiscoverer`, which you can customize to support the value attribute of any specified annotation.
18061806

1807-
* If xref:servlet/integrations/data.adoc[Spring Data's] `@Param` annotation is present on at least one parameter for the method, the value is used.
1807+
2. If xref:servlet/integrations/data.adoc[Spring Data's] `@Param` annotation is present on at least one parameter for the method, the value is used.
18081808
The following example uses the `@Param` annotation:
18091809
+
18101810
[tabs]
@@ -1838,10 +1838,10 @@ The intention of this expression is to require that `name` be equal to `Authenti
18381838
+
18391839
Behind the scenes, this is implemented by using `AnnotationParameterNameDiscoverer`, which you can customize to support the value attribute of any specified annotation.
18401840

1841-
* If you compile your code with the `-parameters` argument, the standard JDK reflection API is used to discover the parameter names.
1841+
3. If you compile your code with the `-parameters` argument, the standard JDK reflection API is used to discover the parameter names.
18421842
This works on both classes and interfaces.
18431843

1844-
* Finally, if you compile your code with debug symbols, the parameter names are discovered by using the debug symbols.
1844+
4. Finally, if you compile your code with debug symbols, the parameter names are discovered by using the debug symbols.
18451845
This does not work for interfaces, since they do not have debug information about the parameter names.
18461846
For interfaces, either annotations or the `-parameters` approach must be used.
18471847

0 commit comments

Comments
 (0)