Fix various typos
Fix a variety of typos throughout the project, primarily in comments (javadoc or otherwise) but also in a handful of log messages and a couple exception messages. ISSUE: SPR-11123
This commit is contained in:
@@ -295,7 +295,7 @@ public class ResourceServlet extends HttpServletBean {
|
||||
* to allow for message resolution etc that influences JSP contents,
|
||||
* assuming that those background resources might have changed on restart.
|
||||
* <p>Returns the startup time of this servlet if the file that corresponds
|
||||
* to the target resource URL coudln't be resolved (for example, because
|
||||
* to the target resource URL couldn't be resolved (for example, because
|
||||
* the WAR is not expanded).
|
||||
* @see #determineResourceUrl
|
||||
* @see #getFileTimestamp
|
||||
|
||||
@@ -189,7 +189,7 @@ public abstract class AbstractHandlerExceptionResolver implements HandlerExcepti
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a log message for the given exception, occured during processing the given request.
|
||||
* Build a log message for the given exception, occurred during processing the given request.
|
||||
* @param ex the exception that got thrown during handler execution
|
||||
* @param request current HTTP request (useful for obtaining metadata)
|
||||
* @return the log message to use
|
||||
|
||||
@@ -513,7 +513,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
|
||||
}
|
||||
|
||||
/**
|
||||
* Template method for creating a new HttpOuputMessage instance.
|
||||
* Template method for creating a new HttpOutputMessage instance.
|
||||
* <p>The default implementation creates a standard {@link ServletServerHttpResponse}.
|
||||
* This can be overridden for custom {@code HttpOutputMessage} implementations
|
||||
* @param servletResponse current HTTP response
|
||||
@@ -1197,7 +1197,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
|
||||
* sorting a list with this comparator will result in:
|
||||
* <ul>
|
||||
* <li>RHIs with {@linkplain AnnotationMethodHandlerAdapter.RequestSpecificMappingInfo#matchedPatterns better matched paths}
|
||||
* take prescedence over those with a weaker match (as expressed by the {@linkplain PathMatcher#getPatternComparator(String)
|
||||
* take precedence over those with a weaker match (as expressed by the {@linkplain PathMatcher#getPatternComparator(String)
|
||||
* path pattern comparator}.) Typically, this means that patterns without wild cards and uri templates
|
||||
* will be ordered before those without.</li>
|
||||
* <li>RHIs with one single {@linkplain RequestMappingInfo#methods request method} will be
|
||||
|
||||
@@ -82,7 +82,7 @@ public class ServletUriComponentsBuilder extends UriComponentsBuilder {
|
||||
|
||||
/**
|
||||
* Prepare a builder from the host, port, scheme, and path of
|
||||
* an HttpSevletRequest.
|
||||
* an HttpServletRequest.
|
||||
*/
|
||||
public static ServletUriComponentsBuilder fromRequestUri(HttpServletRequest request) {
|
||||
ServletUriComponentsBuilder builder = fromRequest(request);
|
||||
|
||||
@@ -211,7 +211,7 @@ public abstract class WebContentGenerator extends WebApplicationObjectSupport {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether 'must-revaliate' is added to every Cache-Control header.
|
||||
* Return whether 'must-revalidate' is added to every Cache-Control header.
|
||||
*/
|
||||
public boolean isAlwaysMustRevalidate() {
|
||||
return alwaysMustRevalidate;
|
||||
|
||||
@@ -38,7 +38,7 @@ import org.springframework.web.servlet.ViewResolver;
|
||||
* application beans - such a separation will make this clear.
|
||||
*
|
||||
* <p>This ViewResolver does not support internationalization.
|
||||
* Conside ResourceBundleViewResolver if you need to apply different
|
||||
* Consider ResourceBundleViewResolver if you need to apply different
|
||||
* view resources per locale.
|
||||
*
|
||||
* <p>Note: This ViewResolver implements the Ordered interface to allow for
|
||||
|
||||
@@ -70,7 +70,7 @@ import org.springframework.web.servlet.ViewResolver;
|
||||
* with the view's {@linkplain View#getContentType() content type}). The most compatible view is returned.
|
||||
*
|
||||
* <p>Additionally, this view resolver exposes the {@link #setDefaultViews(List) defaultViews} property, allowing you to
|
||||
* override the views provided by the view resolvers. Note that these default views are offered as candicates, and
|
||||
* override the views provided by the view resolvers. Note that these default views are offered as candidates, and
|
||||
* still need have the content type requested (via file extension, parameter, or {@code Accept} header, described above).
|
||||
* You can also set the {@linkplain #setDefaultContentType(MediaType) default content type} directly, which will be
|
||||
* returned when the other mechanisms ({@code Accept} header, file extension or parameter) do not result in a match.
|
||||
|
||||
@@ -103,7 +103,7 @@ public abstract class AbstractPdfStamperView extends AbstractUrlBasedView {
|
||||
* e.g. setting the "formFlattening" property.
|
||||
* @param request in case we need locale etc. Shouldn't look at attributes.
|
||||
* @param response in case we need to set cookies. Shouldn't write to it.
|
||||
* @throws Exception any exception that occured during document building
|
||||
* @throws Exception any exception that occurred during document building
|
||||
*/
|
||||
protected abstract void mergePdfDocument(Map<String, Object> model, PdfStamper stamper,
|
||||
HttpServletRequest request, HttpServletResponse response) throws Exception;
|
||||
|
||||
@@ -172,7 +172,7 @@ public abstract class AbstractPdfView extends AbstractView {
|
||||
* @param writer the PdfWriter to use
|
||||
* @param request in case we need locale etc. Shouldn't look at attributes.
|
||||
* @param response in case we need to set cookies. Shouldn't write to it.
|
||||
* @throws Exception any exception that occured during document building
|
||||
* @throws Exception any exception that occurred during document building
|
||||
* @see com.lowagie.text.Document#open()
|
||||
* @see com.lowagie.text.Document#close()
|
||||
*/
|
||||
|
||||
@@ -96,7 +96,7 @@ public abstract class AbstractAtomFeedView extends AbstractFeedView<Feed> {
|
||||
* @param request in case we need locale etc. Shouldn't look at attributes.
|
||||
* @param response in case we need to set cookies. Shouldn't write to it.
|
||||
* @return the feed entries to be added to the feed
|
||||
* @throws Exception any exception that occured during document building
|
||||
* @throws Exception any exception that occurred during document building
|
||||
* @see Entry
|
||||
*/
|
||||
protected abstract List<Entry> buildFeedEntries(
|
||||
|
||||
@@ -91,7 +91,7 @@ public abstract class AbstractFeedView<T extends WireFeed> extends AbstractView
|
||||
* @param feed the feed to add entries to
|
||||
* @param request in case we need locale etc. Shouldn't look at attributes.
|
||||
* @param response in case we need to set cookies. Shouldn't write to it.
|
||||
* @throws Exception any exception that occured during building
|
||||
* @throws Exception any exception that occurred during building
|
||||
*/
|
||||
protected abstract void buildFeedEntries(Map<String, Object> model, T feed,
|
||||
HttpServletRequest request, HttpServletResponse response) throws Exception;
|
||||
|
||||
@@ -79,7 +79,7 @@ public abstract class AbstractRssFeedView extends AbstractFeedView<Channel> {
|
||||
* @param request in case we need locale etc. Shouldn't look at attributes.
|
||||
* @param response in case we need to set cookies. Shouldn't write to it.
|
||||
* @return the feed items to be added to the feed
|
||||
* @throws Exception any exception that occured during document building
|
||||
* @throws Exception any exception that occurred during document building
|
||||
* @see Item
|
||||
*/
|
||||
protected abstract List<Item> buildFeedItems(
|
||||
|
||||
@@ -217,7 +217,7 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
|
||||
* <p>The name specified in the list should correspond to an attribute in the
|
||||
* model Map, and to a sub-report data source parameter in your report file.
|
||||
* If you pass in {@code JRDataSource} objects as model attributes,
|
||||
* specifing this list of keys is not required.
|
||||
* specifying this list of keys is not required.
|
||||
* <p>If you specify a list of sub-report data keys, it is required to also
|
||||
* specify a {@code reportDataKey} for the main report, to avoid confusion
|
||||
* between the data source objects for the various reports involved.
|
||||
@@ -536,7 +536,7 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
|
||||
* {@link #renderReport} method that should be implemented by the subclass.
|
||||
* @param model the model map, as passed in for view rendering. Must contain
|
||||
* a report data value that can be converted to a {@code JRDataSource},
|
||||
* acccording to the rules of the {@link #fillReport} method.
|
||||
* according to the rules of the {@link #fillReport} method.
|
||||
*/
|
||||
@Override
|
||||
protected void renderMergedOutputModel(
|
||||
@@ -820,12 +820,12 @@ public abstract class AbstractJasperReportsView extends AbstractUrlBasedView {
|
||||
|
||||
/**
|
||||
* Subclasses should implement this method to perform the actual rendering process.
|
||||
* <p>Note that the content type has not been set yet: Implementors should build
|
||||
* <p>Note that the content type has not been set yet: Implementers should build
|
||||
* a content type String and set it via {@code response.setContentType}.
|
||||
* If necessary, this can include a charset clause for a specific encoding.
|
||||
* The latter will only be necessary for textual output onto a Writer, and only
|
||||
* in case of the encoding being specified in the JasperReports exporter parameters.
|
||||
* <p><b>WARNING:</b> Implementors should not use {@code response.setCharacterEncoding}
|
||||
* <p><b>WARNING:</b> Implementers should not use {@code response.setCharacterEncoding}
|
||||
* unless they are willing to depend on Servlet API 2.4 or higher. Prefer a
|
||||
* concatenated content type String with a charset clause instead.
|
||||
* @param populatedReport the populated {@code JasperPrint} to render
|
||||
|
||||
@@ -73,7 +73,7 @@ public class VelocityToolboxView extends VelocityView {
|
||||
* to automatically load a Velocity Tools toolbox definition file and expose
|
||||
* all defined tools in the specified scopes. If no config location is
|
||||
* specified, no toolbox will be loaded and exposed.
|
||||
* <p>The specfied location string needs to refer to a ServletContext
|
||||
* <p>The specified location string needs to refer to a ServletContext
|
||||
* resource, as expected by ServletToolboxManager which is part of
|
||||
* the view package of Velocity Tools.
|
||||
* @see org.apache.velocity.tools.view.servlet.ServletToolboxManager#getInstance
|
||||
|
||||
@@ -88,7 +88,7 @@ public class VelocityViewResolver extends AbstractTemplateViewResolver {
|
||||
* to automatically load a Velocity Tools toolbox definition file and expose
|
||||
* all defined tools in the specified scopes. If no config location is
|
||||
* specified, no toolbox will be loaded and exposed.
|
||||
* <p>The specfied location string needs to refer to a ServletContext
|
||||
* <p>The specified location string needs to refer to a ServletContext
|
||||
* resource, as expected by ServletToolboxManager which is part of
|
||||
* the view package of Velocity Tools.
|
||||
* <p><b>Note:</b> Specifying a toolbox config location will lead to
|
||||
|
||||
@@ -264,7 +264,7 @@ public class XsltView extends AbstractUrlBasedView {
|
||||
* an object of {@link #getSourceTypes() supported type}.
|
||||
* @param model the merged model Map
|
||||
* @return the XSLT Source object (or {@code null} if none found)
|
||||
* @throws Exception if an error occured during locating the source
|
||||
* @throws Exception if an error occurred during locating the source
|
||||
* @see #setSourceKey
|
||||
* @see #convertSource
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user