From 8a0c4caff6d6c2aa0920a74f256d818d88cef7cc Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 16 Mar 2022 14:33:52 +0100 Subject: [PATCH] Polish Javadoc --- .../web/reactive/result/view/RedirectView.java | 16 ++++++++-------- .../web/reactive/result/view/Rendering.java | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java index 50aa95ecb0..65fbe78e3a 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/RedirectView.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -45,7 +45,7 @@ import org.springframework.web.util.UriUtils; * values from the model or with URI variables from the current request. * *

By default {@link HttpStatus#SEE_OTHER} is used but alternate status codes - * may be via constructor or setters arguments. + * may be supplied via constructor or setters arguments. * * @author Sebastien Deleuze * @author Rossen Stoyanchev @@ -74,7 +74,7 @@ public class RedirectView extends AbstractUrlBasedView { /** * Create a new {@code RedirectView} with the given redirect URL. - * Status code {@link HttpStatus#SEE_OTHER} is used by default. + *

Status code {@link HttpStatus#SEE_OTHER} is used by default. */ public RedirectView(String redirectUrl) { super(redirectUrl); @@ -109,9 +109,9 @@ public class RedirectView extends AbstractUrlBasedView { } /** - * Whether to interpret a given redirect URLs that starts with a slash ("/") - * as relative to the current context path ({@code true}, the default) or to - * the web server root ({@code false}). + * Whether to interpret a given redirect URL that starts with a slash ("/") + * as relative to the current context path ({@code true}, the default) or + * relative to the web server root ({@code false}). */ public void setContextRelative(boolean contextRelative) { this.contextRelative = contextRelative; @@ -141,7 +141,7 @@ public class RedirectView extends AbstractUrlBasedView { /** * Configure one or more hosts associated with the application. - * All other hosts will be considered external hosts. + *

All other hosts will be considered external hosts. *

In effect this provides a way turn off encoding for URLs that * have a host and that host is not listed as a known host. *

If not set (the default) all redirect URLs are encoded. @@ -301,7 +301,7 @@ public class RedirectView extends AbstractUrlBasedView { * property is configured and the target URL has a host that does not match. * @param targetUrl the target redirect URL * @return {@code true} the target URL has a remote host, {@code false} if it - * the URL does not have a host or the "host" property is not configured. + * the URL does not have a host or the "host" property is not configured */ protected boolean isRemoteHost(String targetUrl) { if (ObjectUtils.isEmpty(this.hosts)) { diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/Rendering.java b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/Rendering.java index 9bd56f965b..d17a030b52 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/Rendering.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/result/view/Rendering.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,7 @@ import org.springframework.ui.Model; * Or controllers may return model attribute(s) and rely on a default view name * being selected based on the request path. * - *

{@link Rendering} can be used to combine a view name with model attributes, + *

{@code Rendering} can be used to combine a view name with model attributes, * set the HTTP status or headers, and for other more advanced options around * redirect scenarios. *