Skip to content

Commit 78fd882

Browse files
committed
Remove superfluous empty lines after code blocks
1 parent 3c02331 commit 78fd882

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/docs/asciidoc/core/core-aop.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,6 @@ of any public method.
471471
<3> `tradingOperation` matches if a method execution represents any public method in the
472472
trading module.
473473

474-
475474
It is a best practice to build more complex pointcut expressions out of smaller named
476475
components, as shown earlier. When referring to pointcuts by name, normal Java visibility
477476
rules apply (you can see private pointcuts in the same type, protected pointcuts in the

src/docs/asciidoc/web/webmvc.adoc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,6 @@ as the following example shows:
14831483
----
14841484
<1> Using a `consumes` attribute to narrow the mapping by the content type.
14851485

1486-
14871486
The `consumes` attribute also supports negation expressions -- for example, `!text/plain` means any
14881487
content type other than `text/plain`.
14891488

@@ -1513,7 +1512,6 @@ content types that a controller method produces, as the following example shows:
15131512
----
15141513
<1> Using a `produces` attribute to narrow the mapping by the content type.
15151514

1516-
15171515
The media type can specify a character set. Negated expressions are supported -- for example,
15181516
`!text/plain` means any content type other than "text/plain".
15191517

@@ -1548,7 +1546,6 @@ specific value (`myParam=myValue`). The following example shows how to test for
15481546
----
15491547
<1> Testing whether `myParam` equals `myValue`.
15501548

1551-
15521549
You can also use the same with request header conditions, as the following example shows:
15531550

15541551
[source,java,indent=0]
@@ -1561,7 +1558,6 @@ You can also use the same with request header conditions, as the following examp
15611558
----
15621559
<1> Testing whether `myHeader` equals `myValue`.
15631560

1564-
15651561
TIP: You can match `Content-Type` and `Accept` with the headers condition, but it is better to use
15661562
<<mvc-ann-requestmapping-consumes, consumes>> and <<mvc-ann-requestmapping-produces, produces>>
15671563
instead.
@@ -1650,7 +1646,6 @@ public class MyConfig {
16501646

16511647

16521648

1653-
16541649
[[mvc-ann-methods]]
16551650
=== Handler Methods
16561651
[.small]#<<web-reactive.adoc#webflux-ann-methods, Same as in Spring WebFlux>>#
@@ -2030,7 +2025,6 @@ The following example shows how to do so:
20302025
----
20312026
<1> Using `@RequestParam` to bind `petId`.
20322027

2033-
20342028
By default, method parameters that use this annotation are required, but you can specify that
20352029
a method parameter is optional by setting the `@RequestParam` annotation's `required` flag to
20362030
`false` or by declaring the argument with an `java.util.Optional` wrapper.
@@ -2087,7 +2081,6 @@ The following example gets the value of the `Accept-Encoding` and `Keep-Alive` h
20872081
<1> Get the value of the `Accept-Encoding` header.
20882082
<2> Get the value of the `Keep-Alive` header.
20892083

2090-
20912084
If the target method parameter type is not
20922085
`String`, type conversion is automatically applied. See <<mvc-ann-typeconversion>>.
20932086

@@ -2151,7 +2144,6 @@ converting individual query parameters and form fields. The following example sh
21512144
----
21522145
<1> Bind an instance of `Pet`.
21532146

2154-
21552147
The `Pet` instance above is resolved as follows:
21562148

21572149
* From the model if already added by using <<mvc-ann-modelattrib-methods>>.
@@ -2201,7 +2193,6 @@ to the `@ModelAttribute`, as the following example shows:
22012193
----
22022194
<1> Adding a `BindingResult` next to the `@ModelAttribute`.
22032195

2204-
22052196
In some cases, you may want access to a model attribute without data binding. For such
22062197
cases, you can inject the `Model` into the controller and access it directly or,
22072198
alternatively, set `@ModelAttribute(binding=false)`, as the following example shows:
@@ -2227,7 +2218,6 @@ alternatively, set `@ModelAttribute(binding=false)`, as the following example sh
22272218
----
22282219
<1> Setting `@ModelAttribute(binding=false)`.
22292220

2230-
22312221
You can automatically apply validation after data binding by adding the
22322222
`javax.validation.Valid` annotation or Spring's `@Validated` annotation (
22332223
<<core.adoc#validation-beanvalidation, Bean Validation>> and
@@ -2246,7 +2236,6 @@ You can automatically apply validation after data binding by adding the
22462236
----
22472237
<1> Validate the `Pet` instance.
22482238

2249-
22502239
Note that using `@ModelAttribute` is optional (for example, to set its attributes).
22512240
By default, any argument that is not a simple value type (as determined by
22522241
{api-spring-framework}/beans/BeanUtils.html#isSimpleProperty-java.lang.Class-[BeanUtils#isSimpleProperty])
@@ -2277,7 +2266,6 @@ The following example uses the `@SessionAttributes` annotation:
22772266
----
22782267
<1> Using the `@SessionAttributes` annotation.
22792268

2280-
22812269
On the first request, when a model attribute with the name, `pet`, is added to the model,
22822270
it is automatically promoted to and saved in the HTTP Servlet session. It remains there
22832271
until another controller method uses a `SessionStatus` method argument to clear the
@@ -2307,7 +2295,6 @@ storage, as the following example shows:
23072295
<2> Clearing the `Pet` value from the Servlet session.
23082296

23092297

2310-
23112298
[[mvc-ann-sessionattribute]]
23122299
==== `@SessionAttribute`
23132300
[.small]#<<web-reactive.adoc#webflux-ann-sessionattribute, Same as in Spring WebFlux>>#
@@ -2327,7 +2314,6 @@ as the following example shows:
23272314
----
23282315
<1> Using a `@SessionAttribute` annotation.
23292316

2330-
23312317
For use cases that require adding or removing session attributes, consider injecting
23322318
`org.springframework.web.context.request.WebRequest` or
23332319
`javax.servlet.http.HttpSession` into the controller method.
@@ -2356,7 +2342,6 @@ or `HandlerInterceptor`):
23562342
<1> Using the `@RequestAttribute` annotation.
23572343

23582344

2359-
23602345
[[mvc-redirecting-passing-data]]
23612346
==== Redirect Attributes
23622347

@@ -2872,7 +2857,6 @@ The following listing shows an example:
28722857
----
28732858
<1> Defining an `@InitBinder` method.
28742859

2875-
28762860
Alternatively, when you use a `Formatter`-based setup through a shared
28772861
`FormattingConversionService`, you can re-use the same approach and register
28782862
controller-specific `Formatter` implementations, as the following example shows:
@@ -2895,7 +2879,6 @@ controller-specific `Formatter` implementations, as the following example shows:
28952879

28962880

28972881

2898-
28992882
[[mvc-ann-exceptionhandler]]
29002883
=== Exceptions
29012884
[.small]#<<web-reactive.adoc#webflux-ann-controller-exceptions, Same as in Spring WebFlux>>#
@@ -3901,7 +3884,6 @@ as the following example shows:
39013884
<2> The response has been set to 304 (NOT_MODIFIED) -- no further processing.
39023885
<3> Continue with the request processing.
39033886

3904-
39053887
There are three variants for checking conditional requests against `eTag` values, `lastModified`
39063888
values, or both. For conditional `GET` and `HEAD` requests, you can set the response to
39073889
304 (NOT_MODIFIED). For conditional `POST`, `PUT`, and `DELETE`, you can instead set the response

0 commit comments

Comments
 (0)