diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractCachingViewResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractCachingViewResolver.java index f7bac793ee..04a8e3e0a9 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractCachingViewResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractCachingViewResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2023 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. @@ -129,14 +129,14 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu /** * Whether a view name once resolved to {@code null} should be cached and * automatically resolved to {@code null} subsequently. - *
Default is "true": unresolved view names are being cached, as of Spring 3.1. + *
Default is "true": unresolved view names are cached. * Note that this flag only applies if the general {@link #setCache "cache"} * flag is kept at its default of "true" as well. - *
Of specific interest is the ability for some AbstractUrlBasedView + *
Of specific interest is the ability for some {@link AbstractUrlBasedView} * implementations (e.g., FreeMarker) to check if an underlying resource * exists via {@link AbstractUrlBasedView#checkResource(Locale)}. * With this flag set to "false", an underlying resource that re-appears - * is noticed and used. With the flag set to "true", one check is made only. + * is noticed and used. With the flag set to "true", only one check is made. */ public void setCacheUnresolved(boolean cacheUnresolved) { this.cacheUnresolved = cacheUnresolved; @@ -150,8 +150,8 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu } /** - * Sets the filter that determines if view should be cached. - * Default behaviour is to cache all views. + * Set the filter that determines if view should be cached. + *
Default behaviour is to cache all views. * @since 5.2 */ public void setCacheFilter(CacheFilter cacheFilter) { @@ -218,8 +218,8 @@ public abstract class AbstractCachingViewResolver extends WebApplicationObjectSu /** * Provides functionality to clear the cache for a certain view. - *
This can be handy in case developer are able to modify views - * (e.g. FreeMarker templates) at runtime after which you'd need to + *
This can be handy in case developers are able to modify views + * (e.g., FreeMarker templates) at runtime after which you'd need to * clear the cache for the specified view. * @param viewName the view name for which the cached view object * (if any) needs to be removed