Skip to content

Commit 8a0c4ca

Browse files
committed
Polish Javadoc
1 parent 46363c3 commit 8a0c4ca

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -45,7 +45,7 @@
4545
* values from the model or with URI variables from the current request.
4646
*
4747
* <p>By default {@link HttpStatus#SEE_OTHER} is used but alternate status codes
48-
* may be via constructor or setters arguments.
48+
* may be supplied via constructor or setters arguments.
4949
*
5050
* @author Sebastien Deleuze
5151
* @author Rossen Stoyanchev
@@ -74,7 +74,7 @@ public RedirectView() {
7474

7575
/**
7676
* Create a new {@code RedirectView} with the given redirect URL.
77-
* Status code {@link HttpStatus#SEE_OTHER} is used by default.
77+
* <p>Status code {@link HttpStatus#SEE_OTHER} is used by default.
7878
*/
7979
public RedirectView(String redirectUrl) {
8080
super(redirectUrl);
@@ -109,9 +109,9 @@ public HttpStatus getStatusCode() {
109109
}
110110

111111
/**
112-
* Whether to interpret a given redirect URLs that starts with a slash ("/")
113-
* as relative to the current context path ({@code true}, the default) or to
114-
* the web server root ({@code false}).
112+
* Whether to interpret a given redirect URL that starts with a slash ("/")
113+
* as relative to the current context path ({@code true}, the default) or
114+
* relative to the web server root ({@code false}).
115115
*/
116116
public void setContextRelative(boolean contextRelative) {
117117
this.contextRelative = contextRelative;
@@ -141,7 +141,7 @@ public boolean isPropagateQuery() {
141141

142142
/**
143143
* Configure one or more hosts associated with the application.
144-
* All other hosts will be considered external hosts.
144+
* <p>All other hosts will be considered external hosts.
145145
* <p>In effect this provides a way turn off encoding for URLs that
146146
* have a host and that host is not listed as a known host.
147147
* <p>If not set (the default) all redirect URLs are encoded.
@@ -301,7 +301,7 @@ protected Mono<Void> sendRedirect(String targetUrl, ServerWebExchange exchange)
301301
* property is configured and the target URL has a host that does not match.
302302
* @param targetUrl the target redirect URL
303303
* @return {@code true} the target URL has a remote host, {@code false} if it
304-
* the URL does not have a host or the "host" property is not configured.
304+
* the URL does not have a host or the "host" property is not configured
305305
*/
306306
protected boolean isRemoteHost(String targetUrl) {
307307
if (ObjectUtils.isEmpty(this.hosts)) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@
3434
* Or controllers may return model attribute(s) and rely on a default view name
3535
* being selected based on the request path.
3636
*
37-
* <p>{@link Rendering} can be used to combine a view name with model attributes,
37+
* <p>{@code Rendering} can be used to combine a view name with model attributes,
3838
* set the HTTP status or headers, and for other more advanced options around
3939
* redirect scenarios.
4040
*

0 commit comments

Comments
 (0)