diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java index 8f5ddaff4a3..af706c2e124 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/FrameworkServlet.java @@ -638,7 +638,7 @@ public abstract class FrameworkServlet extends HttpServletBean implements Applic * {@link org.springframework.web.context.ConfigurableWebApplicationContext} * interface. Can be overridden in subclasses. *
Do not forget to register this servlet instance as application listener on the - * created context (for triggering its {@link #onRefresh callback}, and to call + * created context (for triggering its {@link #onRefresh callback}), and to call * {@link org.springframework.context.ConfigurableApplicationContext#refresh()} * before returning the context instance. * @param parent the parent ApplicationContext to use, or {@code null} if none diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java index d3c3dd8dd9c..68ae2011c5e 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java @@ -40,7 +40,7 @@ import org.springframework.lang.Nullable; *
Note: {@code HandlerAdapter} implementors may implement the {@link * org.springframework.core.Ordered} interface to be able to specify a sorting * order (and thus a priority) for getting applied by the {@code DispatcherServlet}. - * Non-Ordered instances get treated as lowest priority. + * Non-Ordered instances get treated as the lowest priority. * * @author Rod Johnson * @author Juergen Hoeller @@ -50,7 +50,7 @@ import org.springframework.lang.Nullable; public interface HandlerAdapter { /** - * Given a handler instance, return whether or not this {@code HandlerAdapter} + * Given a handler instance, return whether this {@code HandlerAdapter} * can support it. Typical HandlerAdapters will base the decision on the handler * type. HandlerAdapters will usually only support one handler type each. *
A typical implementation: @@ -58,7 +58,7 @@ public interface HandlerAdapter { * return (handler instanceof MyHandler); * } * @param handler the handler object to check - * @return whether or not this object can use the given handler + * @return whether this object can use the given handler */ boolean supports(Object handler); diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java index 0a64002f018..081f677aebe 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerMapping.java @@ -45,7 +45,7 @@ import org.springframework.lang.Nullable; * *
Note: Implementations can implement the {@link org.springframework.core.Ordered} * interface to be able to specify a sorting order and thus a priority for getting - * applied by DispatcherServlet. Non-Ordered instances get treated as lowest priority. + * applied by DispatcherServlet. Non-Ordered instances get treated as the lowest priority. * * @author Rod Johnson * @author Juergen Hoeller diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java index 12954130a08..d7e1e4ef203 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/ModelAndView.java @@ -58,7 +58,7 @@ public class ModelAndView { @Nullable private HttpStatusCode status; - /** Indicates whether or not this instance has been cleared with a call to {@link #clear()}. */ + /** Indicates whether this instance has been cleared with a call to {@link #clear()}. */ private boolean cleared = false; @@ -216,7 +216,7 @@ public class ModelAndView { } /** - * Indicate whether or not this {@code ModelAndView} has a view, either + * Indicate whether this {@code ModelAndView} has a view, either * as a view name or as a direct {@link View} instance. */ public boolean hasView() { diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DefaultServletHandlerConfigurer.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DefaultServletHandlerConfigurer.java index 752febb4082..9279901135c 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DefaultServletHandlerConfigurer.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/DefaultServletHandlerConfigurer.java @@ -90,7 +90,7 @@ public class DefaultServletHandlerConfigurer { * Return a handler mapping instance ordered at {@link Ordered#LOWEST_PRECEDENCE} * containing the {@link DefaultServletHttpRequestHandler} instance mapped * to {@code "/**"}; or {@code null} if default servlet handling was not - * been enabled. + * enabled. * @since 4.3.12 */ @Nullable diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java index bd9c8897b1b..6f6cc56c068 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java @@ -1094,7 +1094,7 @@ public class WebMvcConfigurationSupport implements ApplicationContextAware, Serv /** * Register a {@link ViewResolverComposite} that contains a chain of view resolvers * to use for view resolution. - * By default this resolver is ordered at 0 unless content negotiation view + * By default, this resolver is ordered at 0 unless content negotiation view * resolution is used in which case the order is raised to * {@link org.springframework.core.Ordered#HIGHEST_PRECEDENCE * Ordered.HIGHEST_PRECEDENCE}. @@ -1152,7 +1152,7 @@ public class WebMvcConfigurationSupport implements ApplicationContextAware, Serv } /** - * Override this method to configure cross origin requests processing. + * Override this method to configure cross-origin requests processing. * @since 4.2 * @see CorsRegistry */ diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java index 7ec8ac81d88..8055d62e258 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java @@ -105,7 +105,7 @@ public interface WebMvcConfigurer { } /** - * Configure "global" cross origin request processing. The configured CORS + * Configure "global" cross-origin request processing. The configured CORS * mappings apply to annotated controllers, functional endpoints, and static * resources. *
Annotated controllers can further declare more fine-grained config via
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java
index cb9e9afbc3c..08606f5c01f 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/RequestPredicates.java
@@ -335,14 +335,14 @@ public abstract class RequestPredicates {
void method(Set Note: you can use either
* this {@code #checkNotModified(Instant)} method; or
- * {@link #checkNotModified(String)}. If you want enforce both
+ * {@link #checkNotModified(String)}. If you want to enforce both
* a strong entity tag and a Last-Modified value,
* as recommended by the HTTP specification,
* then you should use {@link #checkNotModified(Instant, String)}.
@@ -301,7 +301,7 @@ public interface ServerRequest {
* also with conditional POST/PUT/DELETE requests.
* Note: you can use either
* this {@link #checkNotModified(Instant)} method; or
- * {@code #checkNotModified(String)}. If you want enforce both
+ * {@code #checkNotModified(String)}. If you want to enforce both
* a strong entity tag and a Last-Modified value,
* as recommended by the HTTP specification,
* then you should use {@link #checkNotModified(Instant, String)}.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java
index 26848264843..8a1c44bdb3e 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/support/RouterFunctionMapping.java
@@ -150,8 +150,8 @@ public class RouterFunctionMapping extends AbstractHandlerMapping implements Ini
}
/**
- * Detect a all {@linkplain RouterFunction router functions} in the
- * current application context.
+ * Detect all {@linkplain RouterFunction router functions} in the current
+ * application context.
*/
private void initRouterFunctions() {
List {@code MappedInterceptor} is supported by sub-classes of
+ * {@code MappedInterceptor} is supported by subclasses of
* {@link org.springframework.web.servlet.handler.AbstractHandlerMethodMapping
* AbstractHandlerMethodMapping} which detect beans of type
* {@code MappedInterceptor} and also check if interceptors directly registered
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java
index 9a61f1d98e1..7cf819cf65f 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/handler/SimpleUrlHandlerMapping.java
@@ -117,7 +117,7 @@ public class SimpleUrlHandlerMapping extends AbstractUrlHandlerMapping {
}
/**
- * Allow Map access to the URL path mappings, with the option to add or
+ * Allow {@code Map} access to the URL path mappings, with the option to add or
* override specific entries.
* Useful for specifying entries directly, for example via "urlMap[myKey]".
* This is particularly useful for adding or overriding entries in child
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java
index 673c110da12..315e2cf711b 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/ServletWrappingController.java
@@ -35,7 +35,7 @@ import org.springframework.web.servlet.ModelAndView;
/**
* Spring Controller implementation that wraps a servlet instance which it manages
- * internally. Such a wrapped servlet is not known outside of this controller;
+ * internally. Such a wrapped servlet is not known outside this controller;
* its entire lifecycle is covered here (in contrast to {@link ServletForwardingController}).
*
* Useful to invoke an existing servlet via Spring's dispatching infrastructure,
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java
index b0e94f7f0b2..661b2ffd17d 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/WebContentInterceptor.java
@@ -56,7 +56,7 @@ import org.springframework.web.util.pattern.PathPatternParser;
* {@link PathPattern}s. The syntax is largely the same with the latter being
* more tailored for web usage and more efficient. The choice depends on the
* presence of a {@link UrlPathHelper#resolveAndCacheLookupPath resolved}
- * {@code String} lookupPath or a {@link ServletRequestPathUtils#parseAndCache}
+ * {@code String} lookupPath or a {@link ServletRequestPathUtils#parseAndCache
* parsed} {@code RequestPath} which in turn depends on the
* {@link HandlerMapping} that matched the current request.
*
@@ -182,7 +182,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
/**
* Map specific URL paths to a specific {@link org.springframework.http.CacheControl}.
* Overrides the default cache seconds setting of this interceptor.
- * Can specify a empty {@link org.springframework.http.CacheControl} instance
+ * Can specify an empty {@link org.springframework.http.CacheControl} instance
* to exclude a URL path from default caching.
* For pattern syntax see {@link AntPathMatcher} and {@link PathPattern}
* as well as the class-level Javadoc for details for when each is used.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractRequestCondition.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractRequestCondition.java
index d69fd239ced..1dbf4853569 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractRequestCondition.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/AbstractRequestCondition.java
@@ -33,7 +33,7 @@ import org.springframework.lang.Nullable;
public abstract class AbstractRequestCondition If the method parameter is of type {@link Map} it will by resolved by
+ * If the method parameter is of type {@link Map} it will be resolved by
* {@link MatrixVariableMapMethodArgumentResolver} instead unless the annotation
* specifies a name in which case it is considered to be a single attribute of
* type map (vs multiple attributes collected in a map).
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
index cee45f41e06..a59e21d3ed9 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
@@ -388,7 +388,7 @@ public class MvcUriComponentsBuilder {
* The configured
* {@link org.springframework.web.servlet.handler.HandlerMethodMappingNamingStrategy
* HandlerMethodMappingNamingStrategy} determines the names of controller
- * method request mappings at startup. By default all mappings are assigned
+ * method request mappings at startup. By default, all mappings are assigned
* a name based on the capital letters of the class name, followed by "#" as
* separator, and then the method name. For example "PC#getPerson"
* for a class named PersonController with method getPerson. In case the
@@ -642,7 +642,7 @@ public class MvcUriComponentsBuilder {
contributor.contributeMethodArgument(param, args[i], builder, uriVars);
}
- // This may not be all the URI variables, supply what we have so far..
+ // This may not be all the URI variables, supply what we have so far.
return builder.uriVariables(uriVars);
}
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
index e823f66306e..b23ae8912cd 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java
@@ -94,7 +94,7 @@ public class RequestPartMethodArgumentResolver extends AbstractMessageConverterM
/**
* Whether the given {@linkplain MethodParameter method parameter} is
- * supported as multi-part. Supports the following method parameters:
+ * supported as multipart. Supports the following method parameters:
* The default implementation converts only if there a registered
+ * The default implementation converts only if there is a registered
* {@link Converter} that can perform the conversion.
* @param sourceValue the source value to create the model attribute from
* @param attributeName the name of the attribute (never {@code null})
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ViewNameMethodReturnValueHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ViewNameMethodReturnValueHandler.java
index 1c7f8bec90c..295d0e32a3e 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ViewNameMethodReturnValueHandler.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ViewNameMethodReturnValueHandler.java
@@ -33,9 +33,9 @@ import org.springframework.web.servlet.RequestToViewNameTranslator;
* as the actual return value is left as-is allowing the configured
* {@link RequestToViewNameTranslator} to select a view name by convention.
*
- * A String return value can be interpreted in more than one ways depending on
+ * A String return value can be interpreted in more than one way depending on
* the presence of annotations like {@code @ModelAttribute} or {@code @ResponseBody}.
- * Therefore this handler should be configured after the handlers that support these
+ * Therefore, this handler should be configured after the handlers that support these
* annotations.
*
* @author Rossen Stoyanchev
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
index 364a2b064c8..be718122c3f 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/support/DefaultHandlerExceptionResolver.java
@@ -290,7 +290,7 @@ public class DefaultHandlerExceptionResolver extends AbstractHandlerExceptionRes
/**
* Handle the case where no
* {@linkplain org.springframework.http.converter.HttpMessageConverter message converters}
- * were found that were acceptable for the client (expressed via the {@code Accept} header.
+ * were found that were acceptable for the client (expressed via the {@code Accept} header).
* The default implementation returns {@code null} in which case the
* exception is handled in {@link #handleErrorResponse}.
* @param ex the HttpMediaTypeNotAcceptableException to be handled
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ContentVersionStrategy.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ContentVersionStrategy.java
index d151f005a2d..79b95354170 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ContentVersionStrategy.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ContentVersionStrategy.java
@@ -23,7 +23,7 @@ import org.springframework.util.DigestUtils;
import org.springframework.util.FileCopyUtils;
/**
- * A {@code VersionStrategy} that calculates an Hex MD5 hashes from the content
+ * A {@code VersionStrategy} that calculates a Hex MD5 hash from the content
* of the resource and appends it to the file name, e.g.
* {@code "styles/main-e36d2e05253c6c7085a91522ce43a0b4.css"}.
*
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java
index 304c4a29b15..d46394e9d01 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/PathResourceResolver.java
@@ -65,7 +65,7 @@ public class PathResourceResolver extends AbstractResourceResolver {
/**
- * By default when a Resource is found, the path of the resolved resource is
+ * By default, when a Resource is found, the path of the resolved resource is
* compared to ensure it's under the input location where it was found.
* However sometimes that may not be the case, e.g. when
* {@link org.springframework.web.servlet.resource.CssLinkResourceTransformer}
@@ -203,9 +203,9 @@ public class PathResourceResolver extends AbstractResourceResolver {
/**
* Perform additional checks on a resolved resource beyond checking whether the
- * resources exists and is readable. The default implementation also verifies
+ * resource exists and is readable. The default implementation also verifies
* the resource is either under the location relative to which it was found or
- * is under one of the {@link #setAllowedLocations allowed locations}.
+ * is under one of the {@linkplain #setAllowedLocations allowed locations}.
* @param resource the resource to check
* @param location the location relative to which the resource was found
* @return "true" if resource is in a valid location, "false" otherwise.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
index cde19983906..fddf6b920d3 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
@@ -79,7 +79,7 @@ import org.springframework.web.util.UrlPathHelper;
* This request handler may also be configured with a
* {@link #setResourceResolvers(List) resourcesResolver} and
* {@link #setResourceTransformers(List) resourceTransformer} chains to support
- * arbitrary resolution and transformation of resources being served. By default
+ * arbitrary resolution and transformation of resources being served. By default,
* a {@link PathResourceResolver} simply finds resources based on the configured
* "locations". An application can configure additional resolvers and transformers
* such as the {@link VersionResourceResolver} which can resolve and prepare URLs
@@ -523,7 +523,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
/**
* Initialize the strategy to use to determine the media type for a resource.
* @deprecated as of 5.2.4 this method returns {@code null}, and if a
- * sub-class returns an actual instance,the instance is used only as a
+ * subclass returns an actual instance, the instance is used only as a
* source of media type mappings, if it contains any. Please, use
* {@link #setMediaTypes(Map)} instead, or if you need to change behavior,
* you can override {@link #getMediaType(HttpServletRequest, Resource)}.
@@ -719,7 +719,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
}
/**
- * Identifies invalid resource paths. By default rejects:
+ * Identifies invalid resource paths. By default, rejects:
* If not done already, variants of the given {@code pathPatterns}, prefixed with
* the {@code version} will be also configured. For example, adding a {@code "/js/**"} path pattern
- * will also cofigure automatically a {@code "/v1.0.0/js/**"} with {@code "v1.0.0"} the
+ * will also configure automatically a {@code "/v1.0.0/js/**"} with {@code "v1.0.0"} the
* {@code version} String given as an argument.
* @param version a version string
* @param pathPatterns one or more resource URL path patterns,
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContext.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContext.java
index 2de52f3cbca..6d4f31f8ed1 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContext.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/support/RequestContext.java
@@ -65,7 +65,7 @@ import org.springframework.web.util.WebUtils;
* Can be instantiated manually, or automatically exposed to views as model attribute via AbstractView's
* "requestContextAttribute" property.
*
- * Will also work outside of DispatcherServlet requests, accessing the root WebApplicationContext
+ * Will also work outside DispatcherServlet requests, accessing the root WebApplicationContext
* and using an appropriate fallback for the locale (the HttpServletRequest's primary locale).
*
* @author Juergen Hoeller
@@ -134,7 +134,7 @@ public class RequestContext {
* This only works with InternalResourceViews, as Errors instances are part of the model and not
* normally exposed as request attributes. It will typically be used within JSPs or custom tags.
* Will only work within a DispatcherServlet request.
- * Pass in a ServletContext to be able to fallback to the root WebApplicationContext.
+ * Pass in a ServletContext to be able to fall back to the root WebApplicationContext.
* @param request current HTTP request
* @see org.springframework.web.servlet.DispatcherServlet
* @see #RequestContext(jakarta.servlet.http.HttpServletRequest, jakarta.servlet.ServletContext)
@@ -148,7 +148,7 @@ public class RequestContext {
* This only works with InternalResourceViews, as Errors instances are part of the model and not
* normally exposed as request attributes. It will typically be used within JSPs or custom tags.
* Will only work within a DispatcherServlet request.
- * Pass in a ServletContext to be able to fallback to the root WebApplicationContext.
+ * Pass in a ServletContext to be able to fall back to the root WebApplicationContext.
* @param request current HTTP request
* @param response current HTTP response
* @see org.springframework.web.servlet.DispatcherServlet
@@ -178,7 +178,7 @@ public class RequestContext {
* Create a new RequestContext for the given request, using the given model attributes for Errors retrieval.
* This works with all View implementations. It will typically be used by View implementations.
* Will only work within a DispatcherServlet request.
- * Pass in a ServletContext to be able to fallback to the root WebApplicationContext.
+ * Pass in a ServletContext to be able to fall back to the root WebApplicationContext.
* @param request current HTTP request
* @param model the model attributes for the current view (can be {@code null},
* using the request attributes for Errors retrieval)
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EscapeBodyTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EscapeBodyTag.java
index d759c7fcfa1..52a1db2d759 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EscapeBodyTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EscapeBodyTag.java
@@ -61,7 +61,7 @@ import org.springframework.web.util.JavaScriptUtils;
* Regards a HTML escaping setting, either on this tag instance,
+ * Regards an HTML escaping setting, either on this tag instance,
* the page level, or the web.xml level.
*
* If "code" isn't set or cannot be resolved, "text" will be used
@@ -78,7 +78,7 @@ import org.springframework.context.NoSuchMessageException;
* Provides the common {@link #setPath path} and {@link #setId id} properties.
- * Provides sub-classes with utility methods for accessing the {@link BindStatus}
+ * Provides subclasses with utility methods for accessing the {@link BindStatus}
* of their bound value and also for {@link #writeOptionalAttribute interacting}
* with the {@link TagWriter}.
*
@@ -111,10 +111,10 @@ public abstract class AbstractDataBoundFormElementTag extends AbstractFormTag im
/**
* Writes the default set of attributes to the supplied {@link TagWriter}.
- * Further abstract sub-classes should override this method to add in
+ * Further, abstract subclasses should override this method to add in
* any additional default attributes but must remember
* to call the {@code super} method.
- * Concrete sub-classes should call this method when/if they want
+ * Concrete subclasses should call this method when/if they want
* to render default attributes.
* @param tagWriter the {@link TagWriter} to which any attributes are to be written
*/
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/PasswordInputTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/PasswordInputTag.java
index ff958a4d2ed..c9ff91ee508 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/PasswordInputTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/PasswordInputTag.java
@@ -278,7 +278,7 @@ public class PasswordInputTag extends InputTag {
}
/**
- * The {@link PasswordInputTag} only writes it's value if the
+ * The {@link PasswordInputTag} only writes its value if the
* {@link #setShowPassword(boolean) 'showPassword'} property value is
* {@link Boolean#TRUE true}.
*/
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/RadioButtonTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/RadioButtonTag.java
index 13f7b5dc4c3..0042de50740 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/RadioButtonTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/RadioButtonTag.java
@@ -24,7 +24,7 @@ import jakarta.servlet.jsp.JspException;
* Rendered elements are marked as 'checked' if the configured
* {@link #setValue(Object) value} matches the {@link #getValue bound value}.
*
- * A typical usage pattern will involved multiple tag instances bound
+ * A typical usage pattern will involve multiple tag instances bound
* to the same property but with different values.
*
*
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/SelectTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/SelectTag.java
index 8c7d92b5e50..95a15c328c5 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/SelectTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/SelectTag.java
@@ -285,7 +285,7 @@ public class SelectTag extends AbstractHtmlInputElementTag {
private String size;
/**
- * Indicates whether or not the '{@code select}' tag allows
+ * Indicates whether the '{@code select}' tag allows
* multiple-selections.
*/
@Nullable
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TagIdGenerator.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TagIdGenerator.java
index ff51344d1a1..5f8463e58eb 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TagIdGenerator.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/TagIdGenerator.java
@@ -22,7 +22,7 @@ import jakarta.servlet.jsp.PageContext;
* Utility class for generating '{@code id}' attributes values for JSP tags. Given the
* name of a tag (the data bound path in most cases) returns a unique ID for that name within
* the current {@link PageContext}. Each request for an ID for a given name will append an
- * ever increasing counter to the name itself. For instance, given the name '{@code person.name}',
+ * ever-increasing counter to the name itself. For instance, given the name '{@code person.name}',
* the first request will give '{@code person.name1}' and the second will give
* '{@code person.name2}'. This supports the common use case where a set of radio or check buttons
* are generated for the same data field, with each button being a distinct tag instance.
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/theme/SessionThemeResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/theme/SessionThemeResolver.java
index d6270d12330..4b3e4c4e007 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/theme/SessionThemeResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/theme/SessionThemeResolver.java
@@ -53,7 +53,7 @@ public class SessionThemeResolver extends AbstractThemeResolver {
@Override
public String resolveThemeName(HttpServletRequest request) {
String themeName = (String) WebUtils.getSessionAttribute(request, THEME_SESSION_ATTRIBUTE_NAME);
- // A specific theme indicated, or do we need to fallback to the default?
+ // A specific theme indicated, or do we need to fall back to the default?
return (themeName != null ? themeName : getDefaultThemeName());
}
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java
index 719283882b3..c50ec22af3c 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java
@@ -188,10 +188,10 @@ public abstract class AbstractView extends WebApplicationObjectSupport implement
}
/**
- * Allow Map access to the static attributes of this view,
+ * Allow {@code Map} access to the static attributes of this view,
* with the option to add or override specific entries.
* Useful for specifying entries directly, for example via
- * "attributesMap[myKey]". This is particularly useful for
+ * {@code attributesMap[myKey]}. This is particularly useful for
* adding or overriding entries in child view definitions.
*/
public Map Path variables are commonly bound to URI template variables through the {@code @PathVariable}
- * annotation. They're are effectively URI template variables with type conversion applied to
+ * annotation. They are effectively URI template variables with type conversion applied to
* them to derive typed Object values. Such values are frequently needed in views for
* constructing links to the same and other URLs.
* Path variables added to the model override static attributes (see {@link #setAttributes(Properties)})
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java
index df59805bd7f..0731f22b9b8 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java
@@ -98,7 +98,7 @@ public class DefaultRequestToViewNameTranslator implements RequestToViewNameTran
}
/**
- * Set whether or not leading slashes should be stripped from the URI when
+ * Set whether leading slashes should be stripped from the URI when
* generating the view name. Default is "true".
*/
public void setStripLeadingSlash(boolean stripLeadingSlash) {
@@ -106,7 +106,7 @@ public class DefaultRequestToViewNameTranslator implements RequestToViewNameTran
}
/**
- * Set whether or not trailing slashes should be stripped from the URI when
+ * Set whether trailing slashes should be stripped from the URI when
* generating the view name. Default is "true".
*/
public void setStripTrailingSlash(boolean stripTrailingSlash) {
@@ -114,7 +114,7 @@ public class DefaultRequestToViewNameTranslator implements RequestToViewNameTran
}
/**
- * Set whether or not file extensions should be stripped from the URI when
+ * Set whether file extensions should be stripped from the URI when
* generating the view name. Default is "true".
*/
public void setStripExtension(boolean stripExtension) {
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java
index 9d0cba4849b..fd7c2b8c888 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/RedirectView.java
@@ -51,7 +51,7 @@ import org.springframework.web.util.WebUtils;
/**
* View that redirects to an absolute, context relative, or current request
* relative URL. The URL may be a URI template in which case the URI template
- * variables will be replaced with values available in the model. By default
+ * variables will be replaced with values available in the model. By default,
* all primitive model attributes (or collections thereof) are exposed as HTTP
* query parameters (assuming they've not been used as URI template variables),
* but this behavior can be changed by overriding the
@@ -160,7 +160,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
* @param contextRelative whether to interpret the given URL as
* relative to the current ServletContext
* @param http10Compatible whether to stay compatible with HTTP 1.0 clients
- * @param exposeModelAttributes whether or not model attributes should be
+ * @param exposeModelAttributes whether model attributes should be
* exposed as query parameters
*/
public RedirectView(String url, boolean contextRelative, boolean http10Compatible, boolean exposeModelAttributes) {
@@ -202,7 +202,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
/**
* Set the {@code exposeModelAttributes} flag which denotes whether
- * or not model attributes should be exposed as HTTP query parameters.
+ * model attributes should be exposed as HTTP query parameters.
* Defaults to {@code true}.
*/
public void setExposeModelAttributes(final boolean exposeModelAttributes) {
@@ -638,11 +638,11 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
/**
* Whether the given targetUrl has a host that is a "foreign" system in which
* case {@link HttpServletResponse#encodeRedirectURL} will not be applied.
- * This method returns {@code true} if the {@link #setHosts(String[])}
+ * This method returns {@code true} if the {@link #setHosts(String[])}
* 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.
+ * @return {@code true} if the target URL has a remote host, {@code false} if
+ * the URL does not have a host or the "host" property is not configured
* @since 4.3
*/
protected boolean isRemoteHost(String targetUrl) {
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
index ac1361aac47..1a7defde9c2 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/UrlBasedViewResolver.java
@@ -331,10 +331,10 @@ public class UrlBasedViewResolver extends AbstractCachingViewResolver implements
}
/**
- * Allow Map access to the static attributes for views returned by
+ * Allow {@code Map} access to the static attributes for views returned by
* this resolver, with the option to add or override specific entries.
* Useful for specifying entries directly, for example via
- * "attributesMap[myKey]". This is particularly useful for
+ * {@code attributesMap[myKey]}. This is particularly useful for
* adding or overriding entries in child view definitions.
*/
public Map
*
*
false
* true
* Set JavaScript escaping for this tag, as boolean value.
- * Default is false.
+ * Default is {@code false}.
*
*
*
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EvalTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EvalTag.java
index ea079a8be8a..eca2ad9c380 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EvalTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/EvalTag.java
@@ -73,7 +73,7 @@ import org.springframework.web.util.TagUtils;
* false
* true
* Set JavaScript escaping for this tag, as a boolean value.
- * Default is false.
+ * Default is {@code false}.
*
*
*
* scope
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/MessageTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/MessageTag.java
index 3c794e0f93a..94e7dc2d52f 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/MessageTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/MessageTag.java
@@ -93,7 +93,7 @@ import org.springframework.web.util.TagUtils;
* false
* true
* Set JavaScript escaping for this tag, as boolean value.
- * Default is false.
+ * Default is {@code false}.
*
*
* message
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/ThemeTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/ThemeTag.java
index 5cd2ce975e1..8709276ff58 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/ThemeTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/ThemeTag.java
@@ -24,7 +24,7 @@ import org.springframework.context.NoSuchMessageException;
* Messages are looked up using the ApplicationContext's ThemeSource,
* and thus should support internationalization.
*
- * false
* true
* Set JavaScript escaping for this tag, as boolean value.
- * Default is false.
+ * Default is {@code false}.
*
*
*
*
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java
index 00dcf90a610..b839a650346 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/AbstractDataBoundFormElementTag.java
@@ -35,7 +35,7 @@ import org.springframework.web.servlet.tags.NestedPathTag;
* Base tag for all data-binding aware JSP form tags.
*
* message
diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java
index b366870fa35..5109247f4b9 100644
--- a/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java
+++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/tags/UrlTag.java
@@ -126,7 +126,7 @@ import org.springframework.web.util.UriUtils;
* false
* true
* Set JavaScript escaping for this tag, as a boolean value.
- * Default is false.
+ * Default is {@code false}.
*