diff --git a/spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java b/spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java index 0bfa58cdad2..da7563a3faa 100644 --- a/spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java +++ b/spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java @@ -61,7 +61,7 @@ import org.springframework.util.ClassUtils; *
On the classpath, bundle resources will be read with the locally configured * {@link #setDefaultEncoding encoding}: by default, ISO-8859-1; consider switching * this to UTF-8, or to {@code null} for the platform default encoding. On the JDK 9+ - * module path where locally provided {@link ResourceBundle.Control} handles are not + * module path where locally provided {@code ResourceBundle.Control} handles are not * supported, this MessageSource always falls back to {@link ResourceBundle#getBundle} * retrieval with the platform default encoding: UTF-8 with a ISO-8859-1 fallback on * JDK 9+ (configurable through the "java.util.PropertyResourceBundle.encoding" system @@ -269,7 +269,7 @@ public class ResourceBundleMessageSource extends AbstractResourceBasedMessageSou * Load a property-based resource bundle from the given reader. *
This will be called in case of a {@link #setDefaultEncoding "defaultEncoding"}, * including {@link ResourceBundleMessageSource}'s default ISO-8859-1 encoding. - * Note that this method can only be called with a {@link ResourceBundle.Control}: + * Note that this method can only be called with a {@code ResourceBundle.Control}: * When running on the JDK 9+ module path where such control handles are not * supported, any overrides in custom subclasses will effectively get ignored. *
The default implementation returns a {@link PropertyResourceBundle}. @@ -291,7 +291,7 @@ public class ResourceBundleMessageSource extends AbstractResourceBasedMessageSou * set to {@code null}, explicitly enforcing the platform default encoding * (which is UTF-8 with a ISO-8859-1 fallback on JDK 9+ but configurable * through the "java.util.PropertyResourceBundle.encoding" system property). - * Note that this method can only be called with a {@link ResourceBundle.Control}: + * Note that this method can only be called with a {@code ResourceBundle.Control}: * When running on the JDK 9+ module path where such control handles are not * supported, any overrides in custom subclasses will effectively get ignored. *
The default implementation returns a {@link PropertyResourceBundle}. @@ -395,9 +395,9 @@ public class ResourceBundleMessageSource extends AbstractResourceBasedMessageSou /** - * Custom implementation of Java 6's {@code ResourceBundle.Control}, - * adding support for custom file encodings, deactivating the fallback to the - * system locale and activating ResourceBundle's native cache, if desired. + * Custom implementation of {@code ResourceBundle.Control}, adding support + * for custom file encodings, deactivating the fallback to the system locale + * and activating ResourceBundle's native cache, if desired. */ private class MessageSourceControl extends ResourceBundle.Control { diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java index b6f9efe074e..4153573d879 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java @@ -32,8 +32,8 @@ import org.springframework.jdbc.InvalidResultSetAccessException; /** * The default implementation of Spring's {@link SqlRowSet} interface, wrapping a - * {@link java.sql.ResultSet}, catching any {@link SQLException java.sql.ResultSet}, catching any {@link SQLExceptions} and translating - * them to a corresponding Spring {@link InvalidResultSetAccessException}. + * {@link java.sql.ResultSet}, catching any {@link SQLException SQLExceptions} and + * translating them to a corresponding Spring {@link InvalidResultSetAccessException}. * *
The passed-in ResultSet should already be disconnected if the SqlRowSet is supposed * to be usable in a disconnected fashion. This means that you will usually pass in a diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSetMetaData.java b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSetMetaData.java index 4452435c188..fac983b31a4 100644 --- a/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSetMetaData.java +++ b/spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSetMetaData.java @@ -23,8 +23,8 @@ import org.springframework.jdbc.InvalidResultSetAccessException; import org.springframework.lang.Nullable; /** - * The default implementation of Spring's {@link SqlRowSetMetaData} interface, wrapping - * a {@link java.sql.ResultSetMetaData} instance, catching any {@link SQLException java.sql.ResultSetMetaData} instance, catching any {@link SQLExceptions} + * The default implementation of Spring's {@link SqlRowSetMetaData} interface, wrapping a + * {@link java.sql.ResultSetMetaData} instance, catching any {@link SQLException SQLExceptions} * and translating them to a corresponding Spring {@link InvalidResultSetAccessException}. * *
Used by {@link ResultSetWrappingSqlRowSet}. diff --git a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java index 52fa68452a7..e25ae26af56 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java @@ -34,7 +34,8 @@ import org.springframework.messaging.Message; public interface ReactorNettyCodec
{ /** - * Decode the input {@link ByteBuf} into one or more {@link Message ByteBuf} into one or more {@link Messages}. + * Decode the input {@link ByteBuf} into one or more {@link Message ByteBuf} + * into one or more {@link Message} objects. * @param inputBuffer the input buffer to decode from * @return 0 or more decoded messages */ diff --git a/spring-web/src/main/java/org/springframework/http/client/InterceptingClientHttpRequestFactory.java b/spring-web/src/main/java/org/springframework/http/client/InterceptingClientHttpRequestFactory.java index b69190408e2..a4ede6db6a1 100644 --- a/spring-web/src/main/java/org/springframework/http/client/InterceptingClientHttpRequestFactory.java +++ b/spring-web/src/main/java/org/springframework/http/client/InterceptingClientHttpRequestFactory.java @@ -24,7 +24,8 @@ import org.springframework.http.HttpMethod; import org.springframework.lang.Nullable; /** - * {@link ClientHttpRequestFactory} wrapper with support for {@link ClientHttpRequestInterceptor ClientHttpRequestFactory} wrapper with support for {@link ClientHttpRequestInterceptors}. + * {@link ClientHttpRequestFactory} wrapper with support for + * {@link ClientHttpRequestInterceptor ClientHttpRequestInterceptors}. * * @author Arjen Poutsma * @since 3.1 diff --git a/spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpRequestFactory.java b/spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpRequestFactory.java index 894a3f675b5..0eabe44545d 100644 --- a/spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpRequestFactory.java +++ b/spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpRequestFactory.java @@ -71,9 +71,8 @@ public class OkHttp3ClientHttpRequestFactory /** - * Sets the underlying read timeout in milliseconds. + * Set the underlying read timeout in milliseconds. * A value of 0 specifies an infinite timeout. - * @see OkHttpClient.Builder#readTimeout(long, TimeUnit) */ public void setReadTimeout(int readTimeout) { this.client = this.client.newBuilder() @@ -82,9 +81,8 @@ public class OkHttp3ClientHttpRequestFactory } /** - * Sets the underlying write timeout in milliseconds. + * Set the underlying write timeout in milliseconds. * A value of 0 specifies an infinite timeout. - * @see OkHttpClient.Builder#writeTimeout(long, TimeUnit) */ public void setWriteTimeout(int writeTimeout) { this.client = this.client.newBuilder() @@ -93,9 +91,8 @@ public class OkHttp3ClientHttpRequestFactory } /** - * Sets the underlying connect timeout in milliseconds. + * Set the underlying connect timeout in milliseconds. * A value of 0 specifies an infinite timeout. - * @see OkHttpClient.Builder#connectTimeout(long, TimeUnit) */ public void setConnectTimeout(int connectTimeout) { this.client = this.client.newBuilder() diff --git a/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufJsonFormatHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufJsonFormatHttpMessageConverter.java index 28339f39a82..26c10e2704e 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufJsonFormatHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufJsonFormatHttpMessageConverter.java @@ -43,7 +43,7 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC /** * Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with default - * {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration. + * {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration. */ public ProtobufJsonFormatHttpMessageConverter() { this(null, null, (ExtensionRegistry)null); @@ -51,7 +51,7 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC /** * Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given - * {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration. + * {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration. * @param parser the JSON parser configuration * @param printer the JSON printer configuration */ @@ -63,7 +63,7 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC /** * Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given - * {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration, also + * {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration, also * accepting a registry that specifies protocol message extensions. * @param parser the JSON parser configuration * @param printer the JSON printer configuration @@ -78,7 +78,7 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC /** * Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given - * {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration, also + * {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration, also * accepting an initializer that allows the registration of message extensions. * @param parser the JSON parser configuration * @param printer the JSON printer configuration diff --git a/spring-web/src/main/java/org/springframework/http/server/reactive/HttpHandler.java b/spring-web/src/main/java/org/springframework/http/server/reactive/HttpHandler.java index 5683a7d630b..18916d55fb1 100644 --- a/spring-web/src/main/java/org/springframework/http/server/reactive/HttpHandler.java +++ b/spring-web/src/main/java/org/springframework/http/server/reactive/HttpHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2018 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. @@ -24,16 +24,16 @@ import reactor.core.publisher.Mono; * *
Higher-level, but still generic, building blocks for applications such as * {@code WebFilter}, {@code WebSession}, {@code ServerWebExchange}, and others - * are available in the {@link org.springframework.web.server} package. + * are available in the {@code org.springframework.web.server} package. * *
Application level programming models such as annotated controllers and * functional handlers are available in the {@code spring-webflux} module. * *
Typically an {@link HttpHandler} represents an entire application with * higher-level programming models bridged via - * {@link org.springframework.web.server.adapter.WebHttpHandlerBuilder - * WebHttpHandlerBuilder}. Multiple applications at unique context paths can be - * plugged in with the help of the {@link ContextPathCompositeHandler}. + * {@link org.springframework.web.server.adapter.WebHttpHandlerBuilder}. + * Multiple applications at unique context paths can be plugged in with the + * help of the {@link ContextPathCompositeHandler}. * * @author Arjen Poutsma * @author Rossen Stoyanchev diff --git a/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java b/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java index f28e0cd813c..536e7339673 100644 --- a/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java +++ b/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java @@ -55,8 +55,8 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler { /** * Template method called from {@link #hasError(ClientHttpResponse)}. *
The default implementation checks if the given status code is - * {@link HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or - * {@link HttpStatus.Series#SERVER_ERROR SERVER_ERROR}. + * {@code HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or + * {@code HttpStatus.Series#SERVER_ERROR SERVER_ERROR}. * Can be overridden in subclasses. * @param statusCode the HTTP status code * @return {@code true} if the response has an error; {@code false} otherwise diff --git a/spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java b/spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java index 2b6743e825e..f64a27141fb 100644 --- a/spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java +++ b/spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java @@ -45,10 +45,10 @@ import org.springframework.util.CollectionUtils; * {@linkplain #setSeriesMapping(Map) series mapping}. * *
If there is no match, this error handler will default to the behavior of - * {@link DefaultResponseErrorHandler}. Note that you can override this default behavior by - * specifying a {@linkplain #setSeriesMapping(Map) series mapping} from - * {@link HttpStatus.Series#CLIENT_ERROR} and/or {@link HttpStatus.Series#SERVER_ERROR} to - * {@code null}. + * {@link DefaultResponseErrorHandler}. Note that you can override this default behavior + * by specifying a {@linkplain #setSeriesMapping(Map) series mapping} from + * {@code HttpStatus.Series#CLIENT_ERROR} and/or {@code HttpStatus.Series#SERVER_ERROR} + * to {@code null}. * * @author Simon Galperin * @author Arjen Poutsma diff --git a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java index d43376dc7db..0b154ab753b 100644 --- a/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/client/RestTemplate.java @@ -73,7 +73,7 @@ import org.springframework.web.util.UriTemplateHandler; * support of less frequent cases. * *
NOTE: As of 5.0, the non-blocking, reactive - * {@link org.springframework.web.reactive.client.WebClient WebClient} offers a + * {@code org.springframework.web.reactive.client.WebClient} offers a * modern alternative to the {@code RestTemplate} with efficient support for * both sync and async, as well as streaming scenarios. The {@code RestTemplate} * will be deprecated in a future version and will not have major new features diff --git a/spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java b/spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java index 68e07bdbea1..922f7b41536 100644 --- a/spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java +++ b/spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java @@ -81,10 +81,8 @@ public class CookieWebSessionIdResolver implements WebSessionIdResolver { } /** - * Add {@link Consumer} for a {@link ResponseCookie.ResponseCookieBuilder - * ResponseCookieBuilder} that will be invoked for each cookie being built, - * just before the call to - * {@link ResponseCookie.ResponseCookieBuilder#build() build()}. + * Add {@link Consumer} for a {@code ResponseCookieBuilder} that will be invoked + * for each cookie being built, just before the call to {@code build()}. * @param initializer consumer for a cookie builder * @since 5.1 */ diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java index e6946cb0e37..b2c18c8bc95 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java @@ -320,20 +320,20 @@ public interface ServerRequest { interface Headers { /** - * Return the list of acceptable {@linkplain MediaType media types}, + * Return the list of acceptable {@code MediaType media types}, * as specified by the {@code Accept} header. *
Returns an empty list when the acceptable media types are unspecified.
*/
List By default an indirect {@link io.undertow.server.DefaultByteBufferPool} with a buffer size
- * of {@value #DEFAULT_POOL_BUFFER_SIZE} is used.
+ * By default an indirect {@link io.undertow.server.DefaultByteBufferPool}
+ * with a buffer size of 8192 is used.
* @since 5.0.8
+ * @see #DEFAULT_POOL_BUFFER_SIZE
*/
public void setByteBufferPool(ByteBufferPool byteBufferPool) {
Assert.notNull(byteBufferPool, "ByteBufferPool must not be null");
diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolHandler.java b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolHandler.java
index dca1c1c2c07..f5d6a6569fb 100644
--- a/spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolHandler.java
+++ b/spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolHandler.java
@@ -27,8 +27,9 @@ import org.springframework.web.socket.WebSocketSession;
/**
* A contract for handling WebSocket messages as part of a higher level protocol,
- * referred to as "sub-protocol" in the WebSocket RFC specification. Handles both
- * {@link WebSocketMessage}s from a client as well as {@link Message WebSocketMessage}s from a client as well as {@link Messages} to a client.
+ * referred to as "sub-protocol" in the WebSocket RFC specification.
+ * Handles both {@link WebSocketMessage WebSocketMessages} from a client
+ * as well as {@link Message Messages} to a client.
*
* Implementations of this interface can be configured on a
* {@link SubProtocolWebSocketHandler} which selects a sub-protocol handler to
diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java
index 7ab42c5cf69..8d3b53c9060 100644
--- a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java
+++ b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java
@@ -53,8 +53,8 @@ import org.springframework.web.socket.sockjs.support.AbstractSockJsService;
* A basic implementation of {@link org.springframework.web.socket.sockjs.SockJsService}
* with support for SPI-based transport handling and session management.
*
- * Based on the {@link TransportHandler} SPI. {@link TransportHandler TransportHandler} SPI. {@link TransportHandlers} may additionally
- * implement the {@link SockJsSessionFactory} and {@link HandshakeHandler} interfaces.
+ * Based on the {@link TransportHandler} SPI. {@link TransportHandler TransportHandlers} may
+ * additionally implement the {@link SockJsSessionFactory} and {@link HandshakeHandler} interfaces.
*
* See the {@link AbstractSockJsService} base class for important details on request mapping.
*