Fail Gradle build for Javadoc warnings
In order to catch Javadoc errors in the build, we now enable the `Xwerror` flag for the `javadoc` tool. In addition, we now use `Xdoclint:syntax` instead of `Xdoclint:none` in order to validate syntax within our Javadoc. This commit fixes all resulting Javadoc errors and warnings. This commit also upgrades to Undertow 2.2.12.Final and fixes the artifact names for exclusions for the Servlet and annotations APIs. The incorrect exclusion of the Servlet API resulted in the Servlet API being on the classpath twice for the javadoc task, which resulted in the following warnings in previous builds. javadoc: warning - Multiple sources of package comments found for package "javax.servlet" javadoc: warning - Multiple sources of package comments found for package "javax.servlet.http" javadoc: warning - Multiple sources of package comments found for package "javax.servlet.descriptor" javadoc: warning - Multiple sources of package comments found for package "javax.servlet.annotation" Closes gh-27480
This commit is contained in:
@@ -576,14 +576,13 @@ public final class ContentDisposition {
|
||||
Builder filename(String filename);
|
||||
|
||||
/**
|
||||
* Set the value of the {@literal filename*} that will be encoded as
|
||||
* defined in the RFC 5987. Only the US-ASCII, UTF-8 and ISO-8859-1
|
||||
* Set the value of the {@code filename} that will be encoded as
|
||||
* defined in RFC 5987. Only the US-ASCII, UTF-8, and ISO-8859-1
|
||||
* charsets are supported.
|
||||
* <p><strong>Note:</strong> Do not use this for a
|
||||
* {@code "multipart/form-data"} requests as per
|
||||
* <a link="https://tools.ietf.org/html/rfc7578#section-4.2">RFC 7578, Section 4.2</a>
|
||||
* and also RFC 5987 itself mentions it does not apply to multipart
|
||||
* requests.
|
||||
* {@code "multipart/form-data"} request since
|
||||
* <a href="https://tools.ietf.org/html/rfc7578#section-4.2">RFC 7578, Section 4.2</a>
|
||||
* and also RFC 5987 mention it does not apply to multipart requests.
|
||||
*/
|
||||
Builder filename(String filename, Charset charset);
|
||||
|
||||
|
||||
@@ -285,21 +285,21 @@ public enum HttpStatus {
|
||||
I_AM_A_TEAPOT(418, Series.CLIENT_ERROR, "I'm a teapot"),
|
||||
/**
|
||||
* @deprecated See
|
||||
* <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff{@literal &}url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* WebDAV Draft Changes</a>
|
||||
*/
|
||||
@Deprecated
|
||||
INSUFFICIENT_SPACE_ON_RESOURCE(419, Series.CLIENT_ERROR, "Insufficient Space On Resource"),
|
||||
/**
|
||||
* @deprecated See
|
||||
* <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff{@literal &}url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* WebDAV Draft Changes</a>
|
||||
*/
|
||||
@Deprecated
|
||||
METHOD_FAILURE(420, Series.CLIENT_ERROR, "Method Failure"),
|
||||
/**
|
||||
* @deprecated
|
||||
* See <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff{@literal &}url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* See <a href="https://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-webdav-protocol-06.txt">
|
||||
* WebDAV Draft Changes</a>
|
||||
*/
|
||||
@Deprecated
|
||||
|
||||
@@ -42,15 +42,15 @@ public interface ClientHttpRequestInterceptor {
|
||||
* request and response to the next entity in the chain.
|
||||
* <p>A typical implementation of this method would follow the following pattern:
|
||||
* <ol>
|
||||
* <li>Examine the {@linkplain HttpRequest request} and body</li>
|
||||
* <li>Examine the {@linkplain HttpRequest request} and body.</li>
|
||||
* <li>Optionally {@linkplain org.springframework.http.client.support.HttpRequestWrapper
|
||||
* wrap} the request to filter HTTP attributes.</li>
|
||||
* <li>Optionally modify the body of the request.</li>
|
||||
* <li><strong>Either</strong>
|
||||
* <ul>
|
||||
* <li><strong>Either</strong>
|
||||
* <li>execute the request using
|
||||
* {@link ClientHttpRequestExecution#execute(org.springframework.http.HttpRequest, byte[])},</li>
|
||||
* <strong>or</strong>
|
||||
* <li><strong>or</strong></li>
|
||||
* <li>do not execute the request to block the execution altogether.</li>
|
||||
* </ul>
|
||||
* <li>Optionally wrap the response to filter HTTP attributes.</li>
|
||||
|
||||
@@ -55,7 +55,7 @@ import org.springframework.util.xml.StaxUtils;
|
||||
* <p>Given the following XML:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <root>
|
||||
* <root>
|
||||
* <child>foo</child>
|
||||
* <child>bar</child>
|
||||
* </root>
|
||||
|
||||
@@ -38,11 +38,11 @@ import org.springframework.util.Assert;
|
||||
* <p>A usage example:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <bean class="org.springframework.http.converter.ObjectToStringHttpMessageConverter">
|
||||
* <constructor-arg>
|
||||
* <bean class="org.springframework.context.support.ConversionServiceFactoryBean"/>
|
||||
* </constructor-arg>
|
||||
* </bean>
|
||||
* <bean class="org.springframework.http.converter.ObjectToStringHttpMessageConverter">
|
||||
* <constructor-arg>
|
||||
* <bean class="org.springframework.context.support.ConversionServiceFactoryBean"/>
|
||||
* </constructor-arg>
|
||||
* </bean>
|
||||
* </pre>
|
||||
*
|
||||
* @author <a href="mailto:dmitry.katsubo@gmail.com">Dmitry Katsubo</a>
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.http.MediaType;
|
||||
* that can read and write Atom feeds. Specifically, this converter can handle {@link Feed}
|
||||
* objects from the <a href="https://github.com/rometools/rome">ROME</a> project.
|
||||
*
|
||||
* <p>><b>NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
|
||||
* <p><b>NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
|
||||
* variant of ROME, version 1.5. Please upgrade your build dependency.</b>
|
||||
*
|
||||
* <p>By default, this converter reads and writes the media type ({@code application/atom+xml}).
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.springframework.http.MediaType;
|
||||
* that can read and write RSS feeds. Specifically, this converter can handle {@link Channel}
|
||||
* objects from the <a href="https://github.com/rometools/rome">ROME</a> project.
|
||||
*
|
||||
* <p>><b>NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
|
||||
* <p><b>NOTE: As of Spring 4.1, this is based on the {@code com.rometools}
|
||||
* variant of ROME, version 1.5. Please upgrade your build dependency.</b>
|
||||
*
|
||||
* <p>By default, this converter reads and writes the media type ({@code application/rss+xml}).
|
||||
|
||||
@@ -135,7 +135,7 @@ public class SimpleHttpServerJaxWsServiceExporter extends AbstractJaxWsServiceEx
|
||||
* Set the base path for context publication. Default is "/".
|
||||
* <p>For each context publication path, the service name will be
|
||||
* appended to this base address. E.g. service name "OrderService"
|
||||
* -> "/OrderService".
|
||||
* → "/OrderService".
|
||||
* @see javax.xml.ws.Endpoint#publish(Object)
|
||||
* @see javax.jws.WebService#serviceName()
|
||||
*/
|
||||
|
||||
@@ -52,7 +52,7 @@ public class SimpleJaxWsServiceExporter extends AbstractJaxWsServiceExporter {
|
||||
* Default is "http://localhost:8080/".
|
||||
* <p>For each actual publication address, the service name will be
|
||||
* appended to this base address. E.g. service name "OrderService"
|
||||
* -> "http://localhost:8080/OrderService".
|
||||
* → "http://localhost:8080/OrderService".
|
||||
* @see javax.xml.ws.Endpoint#publish(String)
|
||||
* @see javax.jws.WebService#serviceName()
|
||||
*/
|
||||
|
||||
@@ -61,8 +61,8 @@ import org.springframework.util.ReflectionUtils;
|
||||
*
|
||||
* <pre class="code">
|
||||
* <absolute-ordering>
|
||||
* <name>some_web_fragment</name>
|
||||
* <name>spring_web</name>
|
||||
* <name>some_web_fragment</name>
|
||||
* <name>spring_web</name>
|
||||
* </absolute-ordering>
|
||||
* </pre>
|
||||
*
|
||||
|
||||
@@ -36,15 +36,15 @@ import javax.servlet.ServletException;
|
||||
* follows:
|
||||
* <pre class="code">
|
||||
* <servlet>
|
||||
* <servlet-name>dispatcher</servlet-name>
|
||||
* <servlet-name>dispatcher</servlet-name>
|
||||
* <servlet-class>
|
||||
* org.springframework.web.servlet.DispatcherServlet
|
||||
* </servlet-class>
|
||||
* <init-param>
|
||||
* <param-name>contextConfigLocation</param-name>
|
||||
* <param-value>/WEB-INF/spring/dispatcher-config.xml</param-value>
|
||||
* <init-param>
|
||||
* <param-name>contextConfigLocation</param-name>
|
||||
* <param-value>/WEB-INF/spring/dispatcher-config.xml</param-value>
|
||||
* </init-param>
|
||||
* <load-on-startup>1</load-on-startup>
|
||||
* <load-on-startup>1</load-on-startup>
|
||||
* </servlet>
|
||||
*
|
||||
* <servlet-mapping>
|
||||
|
||||
@@ -36,33 +36,33 @@ import org.springframework.web.jsf.FacesContextUtils;
|
||||
* <p>Configure this resolver in your {@code faces-config.xml} file as follows:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <application>
|
||||
* <application>
|
||||
* ...
|
||||
* <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
|
||||
* </application></pre>
|
||||
* <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
|
||||
* </application></pre>
|
||||
*
|
||||
* All your JSF expressions can then implicitly refer to the names of
|
||||
* Spring-managed service layer beans, for example in property values of
|
||||
* JSF-managed beans:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <managed-bean>
|
||||
* <managed-bean-name>myJsfManagedBean</managed-bean-name>
|
||||
* <managed-bean-class>example.MyJsfManagedBean</managed-bean-class>
|
||||
* <managed-bean-scope>session</managed-bean-scope>
|
||||
* <managed-property>
|
||||
* <property-name>mySpringManagedBusinessObject</property-name>
|
||||
* <value>#{mySpringManagedBusinessObject}</value>
|
||||
* </managed-property>
|
||||
* </managed-bean></pre>
|
||||
* <managed-bean>
|
||||
* <managed-bean-name>myJsfManagedBean</managed-bean-name>
|
||||
* <managed-bean-class>example.MyJsfManagedBean</managed-bean-class>
|
||||
* <managed-bean-scope>session</managed-bean-scope>
|
||||
* <managed-property>
|
||||
* <property-name>mySpringManagedBusinessObject</property-name>
|
||||
* <value>#{mySpringManagedBusinessObject}</value>
|
||||
* </managed-property>
|
||||
* </managed-bean></pre>
|
||||
*
|
||||
* with "mySpringManagedBusinessObject" defined as Spring bean in
|
||||
* applicationContext.xml:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <bean id="mySpringManagedBusinessObject" class="example.MySpringManagedBusinessObject">
|
||||
* <bean id="mySpringManagedBusinessObject" class="example.MySpringManagedBusinessObject">
|
||||
* ...
|
||||
* </bean></pre>
|
||||
* </bean></pre>
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5
|
||||
|
||||
@@ -45,10 +45,10 @@ import org.springframework.web.jsf.FacesContextUtils;
|
||||
* <p>Configure this resolver in your {@code faces-config.xml} file as follows:
|
||||
*
|
||||
* <pre class="code">
|
||||
* <application>
|
||||
* <application>
|
||||
* ...
|
||||
* <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver>
|
||||
* </application></pre>
|
||||
* <el-resolver>org.springframework.web.jsf.el.WebApplicationContextFacesELResolver</el-resolver>
|
||||
* </application></pre>
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @since 2.5
|
||||
|
||||
@@ -248,7 +248,7 @@ public interface ServerWebExchange {
|
||||
* Configure a consumer to modify the current request using a builder.
|
||||
* <p>Effectively this:
|
||||
* <pre>
|
||||
* exchange.mutate().request(builder-> builder.method(HttpMethod.PUT));
|
||||
* exchange.mutate().request(builder -> builder.method(HttpMethod.PUT));
|
||||
*
|
||||
* // vs...
|
||||
*
|
||||
|
||||
@@ -290,11 +290,11 @@ public class UrlPathHelper {
|
||||
* i.e. the part of the request's URL beyond the part that called the servlet,
|
||||
* or "" if the whole URL has been used to identify the servlet.
|
||||
* <p>Detects include request URL if called within a RequestDispatcher include.
|
||||
* <p>E.g.: servlet mapping = "/*"; request URI = "/test/a" -> "/test/a".
|
||||
* <p>E.g.: servlet mapping = "/"; request URI = "/test/a" -> "/test/a".
|
||||
* <p>E.g.: servlet mapping = "/test/*"; request URI = "/test/a" -> "/a".
|
||||
* <p>E.g.: servlet mapping = "/test"; request URI = "/test" -> "".
|
||||
* <p>E.g.: servlet mapping = "/*.test"; request URI = "/a.test" -> "".
|
||||
* <p>E.g.: servlet mapping = "/*"; request URI = "/test/a" → "/test/a".
|
||||
* <p>E.g.: servlet mapping = "/"; request URI = "/test/a" → "/test/a".
|
||||
* <p>E.g.: servlet mapping = "/test/*"; request URI = "/test/a" → "/a".
|
||||
* <p>E.g.: servlet mapping = "/test"; request URI = "/test" → "".
|
||||
* <p>E.g.: servlet mapping = "/*.test"; request URI = "/a.test" → "".
|
||||
* @param request current HTTP request
|
||||
* @param pathWithinApp a precomputed path within the application
|
||||
* @return the path within the servlet mapping, or ""
|
||||
|
||||
Reference in New Issue
Block a user