Skip to content

Commit ac28de0

Browse files
committed
Polish Javadoc for FreeMarker support
1 parent b58f34d commit ac28de0

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RequestContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
* use, current locale, binding errors, etc. Provides easy access to localized
4545
* messages and Errors instances.
4646
*
47-
* <p>Suitable for exposition to views, and usage within FreeMarker templates,
47+
* <p>Suitable for exposition to views, and usage within FreeMarker templates
4848
* and tag libraries.
4949
*
50-
* <p>Can be instantiated manually, or automatically exposed to views as model
50+
* <p>Can be instantiated manually or automatically exposed to views as a model
5151
* attribute via AbstractView's "requestContextAttribute" property.
5252
*
5353
* @author Rossen Stoyanchev

spring-webflux/src/main/java/org/springframework/web/reactive/result/view/UrlBasedViewResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void setRequestContextAttribute(@Nullable String requestContextAttribute)
188188
}
189189

190190
/**
191-
* Return the name of the @link RequestContext} attribute for all views, if any.
191+
* Return the name of the {@link RequestContext} attribute for all views, if any.
192192
*/
193193
@Nullable
194194
protected String getRequestContextAttribute() {

spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerConfigurer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* using {@link FreeMarkerView}. It exists purely to configure FreeMarker.
4141
* It is not meant to be referenced by application components but just internally
4242
* by {@code FreeMarkerView}. Implements {@link FreeMarkerConfig} to be found by
43-
* {@code FreeMarkerView} without depending on the bean name the configurer.
43+
* {@code FreeMarkerView} without depending on the bean name of the configurer.
4444
*
4545
* <p>Note that you can also refer to a pre-configured FreeMarker Configuration
4646
* instance via the "configuration" property. This allows to share a FreeMarker

spring-webflux/src/main/java/org/springframework/web/reactive/result/view/freemarker/FreeMarkerView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
*
5555
* <p>Depends on a single {@link FreeMarkerConfig} object such as
5656
* {@link FreeMarkerConfigurer} being accessible in the application context.
57-
* Alternatively set the FreeMarker configuration can be set directly on this
57+
* Alternatively the FreeMarker configuration can be set directly on this
5858
* class via {@link #setConfiguration}.
5959
*
6060
* <p>The {@link #setUrl(String) url} property is the location of the FreeMarker

spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerConfigurer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* using Spring's FreeMarkerView for web MVC. It exists purely to configure FreeMarker.
4949
* It is not meant to be referenced by application components but just internally
5050
* by FreeMarkerView. Implements FreeMarkerConfig to be found by FreeMarkerView without
51-
* depending on the bean name the configurer. Each DispatcherServlet can define its
51+
* depending on the bean name of the configurer. Each DispatcherServlet can define its
5252
* own FreeMarkerConfigurer if desired.
5353
*
5454
* <p>Note that you can also refer to a preconfigured FreeMarker Configuration
@@ -57,8 +57,7 @@
5757
* for web and email usage, for example.
5858
*
5959
* <p>This configurer registers a template loader for this package, allowing to
60-
* reference the "spring.ftl" macro library (contained in this package and thus
61-
* in spring.jar) like this:
60+
* reference the "spring.ftl" macro library contained in this package:
6261
*
6362
* <pre class="code">
6463
* &lt;#import "/spring.ftl" as spring/&gt;

spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/FreeMarkerView.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@
7070
*
7171
* <p>Depends on a single {@link FreeMarkerConfig} object such as {@link FreeMarkerConfigurer}
7272
* being accessible in the current web application context, with any bean name.
73-
* Alternatively, you can set the FreeMarker {@link Configuration} object as bean property.
74-
* See {@link #setConfiguration} for more details on the impacts of this approach.
73+
* Alternatively, you can set the FreeMarker {@link Configuration} object as a
74+
* bean property. See {@link #setConfiguration} for more details on the impacts
75+
* of this approach.
7576
*
7677
* <p>Note: Spring's FreeMarker support requires FreeMarker 2.3 or higher.
7778
*

spring-webmvc/src/main/resources/org/springframework/web/servlet/view/freemarker/spring.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* FreeMarkerConfigurer.
1212
*
1313
* To take advantage of these macros, the "exposeSpringMacroHelpers" property
14-
* of the FreeMarker class needs to be set to "true". This will expose a
14+
* of the FreeMarkerView class needs to be set to "true". This will expose a
1515
* RequestContext under the name "springMacroRequestContext", as needed by
1616
* the macros in this library.
1717
*

0 commit comments

Comments
 (0)