Skip to content

Commit 84300b7

Browse files
committed
Fix recent javadoc errors
Issue: SPR-17174
1 parent 1eb06fc commit 84300b7

File tree

16 files changed

+53
-54
lines changed

16 files changed

+53
-54
lines changed

spring-context/src/main/java/org/springframework/context/support/ResourceBundleMessageSource.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* <p>On the classpath, bundle resources will be read with the locally configured
6262
* {@link #setDefaultEncoding encoding}: by default, ISO-8859-1; consider switching
6363
* this to UTF-8, or to {@code null} for the platform default encoding. On the JDK 9+
64-
* module path where locally provided {@link ResourceBundle.Control} handles are not
64+
* module path where locally provided {@code ResourceBundle.Control} handles are not
6565
* supported, this MessageSource always falls back to {@link ResourceBundle#getBundle}
6666
* retrieval with the platform default encoding: UTF-8 with a ISO-8859-1 fallback on
6767
* JDK 9+ (configurable through the "java.util.PropertyResourceBundle.encoding" system
@@ -269,7 +269,7 @@ protected ResourceBundle doGetBundle(String basename, Locale locale) throws Miss
269269
* Load a property-based resource bundle from the given reader.
270270
* <p>This will be called in case of a {@link #setDefaultEncoding "defaultEncoding"},
271271
* including {@link ResourceBundleMessageSource}'s default ISO-8859-1 encoding.
272-
* Note that this method can only be called with a {@link ResourceBundle.Control}:
272+
* Note that this method can only be called with a {@code ResourceBundle.Control}:
273273
* When running on the JDK 9+ module path where such control handles are not
274274
* supported, any overrides in custom subclasses will effectively get ignored.
275275
* <p>The default implementation returns a {@link PropertyResourceBundle}.
@@ -291,7 +291,7 @@ protected ResourceBundle loadBundle(Reader reader) throws IOException {
291291
* set to {@code null}, explicitly enforcing the platform default encoding
292292
* (which is UTF-8 with a ISO-8859-1 fallback on JDK 9+ but configurable
293293
* through the "java.util.PropertyResourceBundle.encoding" system property).
294-
* Note that this method can only be called with a {@link ResourceBundle.Control}:
294+
* Note that this method can only be called with a {@code ResourceBundle.Control}:
295295
* When running on the JDK 9+ module path where such control handles are not
296296
* supported, any overrides in custom subclasses will effectively get ignored.
297297
* <p>The default implementation returns a {@link PropertyResourceBundle}.
@@ -395,9 +395,9 @@ public String toString() {
395395

396396

397397
/**
398-
* Custom implementation of Java 6's {@code ResourceBundle.Control},
399-
* adding support for custom file encodings, deactivating the fallback to the
400-
* system locale and activating ResourceBundle's native cache, if desired.
398+
* Custom implementation of {@code ResourceBundle.Control}, adding support
399+
* for custom file encodings, deactivating the fallback to the system locale
400+
* and activating ResourceBundle's native cache, if desired.
401401
*/
402402
private class MessageSourceControl extends ResourceBundle.Control {
403403

spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232

3333
/**
3434
* The default implementation of Spring's {@link SqlRowSet} interface, wrapping a
35-
* {@link java.sql.ResultSet}, catching any {@link SQLException java.sql.ResultSet}, catching any {@link SQLExceptions} and translating
36-
* them to a corresponding Spring {@link InvalidResultSetAccessException}.
35+
* {@link java.sql.ResultSet}, catching any {@link SQLException SQLExceptions} and
36+
* translating them to a corresponding Spring {@link InvalidResultSetAccessException}.
3737
*
3838
* <p>The passed-in ResultSet should already be disconnected if the SqlRowSet is supposed
3939
* to be usable in a disconnected fashion. This means that you will usually pass in a

spring-jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSetMetaData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import org.springframework.lang.Nullable;
2424

2525
/**
26-
* The default implementation of Spring's {@link SqlRowSetMetaData} interface, wrapping
27-
* a {@link java.sql.ResultSetMetaData} instance, catching any {@link SQLException java.sql.ResultSetMetaData} instance, catching any {@link SQLExceptions}
26+
* The default implementation of Spring's {@link SqlRowSetMetaData} interface, wrapping a
27+
* {@link java.sql.ResultSetMetaData} instance, catching any {@link SQLException SQLExceptions}
2828
* and translating them to a corresponding Spring {@link InvalidResultSetAccessException}.
2929
*
3030
* <p>Used by {@link ResultSetWrappingSqlRowSet}.

spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/ReactorNettyCodec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
public interface ReactorNettyCodec<P> {
3535

3636
/**
37-
* Decode the input {@link ByteBuf} into one or more {@link Message ByteBuf} into one or more {@link Messages}.
37+
* Decode the input {@link ByteBuf} into one or more {@link Message ByteBuf}
38+
* into one or more {@link Message} objects.
3839
* @param inputBuffer the input buffer to decode from
3940
* @return 0 or more decoded messages
4041
*/

spring-web/src/main/java/org/springframework/http/client/InterceptingClientHttpRequestFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
import org.springframework.lang.Nullable;
2525

2626
/**
27-
* {@link ClientHttpRequestFactory} wrapper with support for {@link ClientHttpRequestInterceptor ClientHttpRequestFactory} wrapper with support for {@link ClientHttpRequestInterceptors}.
27+
* {@link ClientHttpRequestFactory} wrapper with support for
28+
* {@link ClientHttpRequestInterceptor ClientHttpRequestInterceptors}.
2829
*
2930
* @author Arjen Poutsma
3031
* @since 3.1

spring-web/src/main/java/org/springframework/http/client/OkHttp3ClientHttpRequestFactory.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ public OkHttp3ClientHttpRequestFactory(OkHttpClient client) {
7171

7272

7373
/**
74-
* Sets the underlying read timeout in milliseconds.
74+
* Set the underlying read timeout in milliseconds.
7575
* A value of 0 specifies an infinite timeout.
76-
* @see OkHttpClient.Builder#readTimeout(long, TimeUnit)
7776
*/
7877
public void setReadTimeout(int readTimeout) {
7978
this.client = this.client.newBuilder()
@@ -82,9 +81,8 @@ public void setReadTimeout(int readTimeout) {
8281
}
8382

8483
/**
85-
* Sets the underlying write timeout in milliseconds.
84+
* Set the underlying write timeout in milliseconds.
8685
* A value of 0 specifies an infinite timeout.
87-
* @see OkHttpClient.Builder#writeTimeout(long, TimeUnit)
8886
*/
8987
public void setWriteTimeout(int writeTimeout) {
9088
this.client = this.client.newBuilder()
@@ -93,9 +91,8 @@ public void setWriteTimeout(int writeTimeout) {
9391
}
9492

9593
/**
96-
* Sets the underlying connect timeout in milliseconds.
94+
* Set the underlying connect timeout in milliseconds.
9795
* A value of 0 specifies an infinite timeout.
98-
* @see OkHttpClient.Builder#connectTimeout(long, TimeUnit)
9996
*/
10097
public void setConnectTimeout(int connectTimeout) {
10198
this.client = this.client.newBuilder()

spring-web/src/main/java/org/springframework/http/converter/protobuf/ProtobufJsonFormatHttpMessageConverter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC
4343

4444
/**
4545
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with default
46-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration.
46+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration.
4747
*/
4848
public ProtobufJsonFormatHttpMessageConverter() {
4949
this(null, null, (ExtensionRegistry)null);
5050
}
5151

5252
/**
5353
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given
54-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration.
54+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration.
5555
* @param parser the JSON parser configuration
5656
* @param printer the JSON printer configuration
5757
*/
@@ -63,7 +63,7 @@ public ProtobufJsonFormatHttpMessageConverter(
6363

6464
/**
6565
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given
66-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration, also
66+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration, also
6767
* accepting a registry that specifies protocol message extensions.
6868
* @param parser the JSON parser configuration
6969
* @param printer the JSON printer configuration
@@ -78,7 +78,7 @@ public ProtobufJsonFormatHttpMessageConverter(@Nullable JsonFormat.Parser parser
7878

7979
/**
8080
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given
81-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration, also
81+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration, also
8282
* accepting an initializer that allows the registration of message extensions.
8383
* @param parser the JSON parser configuration
8484
* @param printer the JSON printer configuration

spring-web/src/main/java/org/springframework/http/server/reactive/HttpHandler.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,16 +24,16 @@
2424
*
2525
* <p>Higher-level, but still generic, building blocks for applications such as
2626
* {@code WebFilter}, {@code WebSession}, {@code ServerWebExchange}, and others
27-
* are available in the {@link org.springframework.web.server} package.
27+
* are available in the {@code org.springframework.web.server} package.
2828
*
2929
* <p>Application level programming models such as annotated controllers and
3030
* functional handlers are available in the {@code spring-webflux} module.
3131
*
3232
* <p>Typically an {@link HttpHandler} represents an entire application with
3333
* higher-level programming models bridged via
34-
* {@link org.springframework.web.server.adapter.WebHttpHandlerBuilder
35-
* WebHttpHandlerBuilder}. Multiple applications at unique context paths can be
36-
* plugged in with the help of the {@link ContextPathCompositeHandler}.
34+
* {@link org.springframework.web.server.adapter.WebHttpHandlerBuilder}.
35+
* Multiple applications at unique context paths can be plugged in with the
36+
* help of the {@link ContextPathCompositeHandler}.
3737
*
3838
* @author Arjen Poutsma
3939
* @author Rossen Stoyanchev

spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public boolean hasError(ClientHttpResponse response) throws IOException {
5555
/**
5656
* Template method called from {@link #hasError(ClientHttpResponse)}.
5757
* <p>The default implementation checks if the given status code is
58-
* {@link HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
59-
* {@link HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
58+
* {@code HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
59+
* {@code HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
6060
* Can be overridden in subclasses.
6161
* @param statusCode the HTTP status code
6262
* @return {@code true} if the response has an error; {@code false} otherwise

spring-web/src/main/java/org/springframework/web/client/ExtractingResponseErrorHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
* {@linkplain #setSeriesMapping(Map) series mapping}.
4646
*
4747
* <p>If there is no match, this error handler will default to the behavior of
48-
* {@link DefaultResponseErrorHandler}. Note that you can override this default behavior by
49-
* specifying a {@linkplain #setSeriesMapping(Map) series mapping} from
50-
* {@link HttpStatus.Series#CLIENT_ERROR} and/or {@link HttpStatus.Series#SERVER_ERROR} to
51-
* {@code null}.
48+
* {@link DefaultResponseErrorHandler}. Note that you can override this default behavior
49+
* by specifying a {@linkplain #setSeriesMapping(Map) series mapping} from
50+
* {@code HttpStatus.Series#CLIENT_ERROR} and/or {@code HttpStatus.Series#SERVER_ERROR}
51+
* to {@code null}.
5252
*
5353
* @author Simon Galperin
5454
* @author Arjen Poutsma

spring-web/src/main/java/org/springframework/web/client/RestTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* support of less frequent cases.
7474
*
7575
* <p><strong>NOTE:</strong> As of 5.0, the non-blocking, reactive
76-
* {@link org.springframework.web.reactive.client.WebClient WebClient} offers a
76+
* {@code org.springframework.web.reactive.client.WebClient} offers a
7777
* modern alternative to the {@code RestTemplate} with efficient support for
7878
* both sync and async, as well as streaming scenarios. The {@code RestTemplate}
7979
* will be deprecated in a future version and will not have major new features

spring-web/src/main/java/org/springframework/web/server/session/CookieWebSessionIdResolver.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ public Duration getCookieMaxAge() {
8181
}
8282

8383
/**
84-
* Add {@link Consumer} for a {@link ResponseCookie.ResponseCookieBuilder
85-
* ResponseCookieBuilder} that will be invoked for each cookie being built,
86-
* just before the call to
87-
* {@link ResponseCookie.ResponseCookieBuilder#build() build()}.
84+
* Add {@link Consumer} for a {@code ResponseCookieBuilder} that will be invoked
85+
* for each cookie being built, just before the call to {@code build()}.
8886
* @param initializer consumer for a cookie builder
8987
* @since 5.1
9088
*/

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -320,20 +320,20 @@ static Builder from(ServerRequest other) {
320320
interface Headers {
321321

322322
/**
323-
* Return the list of acceptable {@linkplain MediaType media types},
323+
* Return the list of acceptable {@code MediaType media types},
324324
* as specified by the {@code Accept} header.
325325
* <p>Returns an empty list when the acceptable media types are unspecified.
326326
*/
327327
List<MediaType> accept();
328328

329329
/**
330-
* Return the list of acceptable {@linkplain Charset charsets},
330+
* Return the list of acceptable {@code Charset charsets},
331331
* as specified by the {@code Accept-Charset} header.
332332
*/
333333
List<Charset> acceptCharset();
334334

335335
/**
336-
* Return the list of acceptable {@linkplain Locale.LanguageRange languages},
336+
* Return the list of acceptable {@code Locale.LanguageRange languages},
337337
* as specified by the {@code Accept-Language} header.
338338
*/
339339
List<Locale.LanguageRange> acceptLanguage();
@@ -345,7 +345,7 @@ interface Headers {
345345
OptionalLong contentLength();
346346

347347
/**
348-
* Return the {@linkplain MediaType media type} of the body, as specified
348+
* Return the {@code MediaType media type} of the body, as specified
349349
* by the {@code Content-Type} header.
350350
*/
351351
Optional<MediaType> contentType();
@@ -398,7 +398,7 @@ interface Builder {
398398
*/
399399
Builder uri(URI uri);
400400

401-
/**
401+
/**
402402
* Add the given header value(s) under the given name.
403403
* @param headerName the header name
404404
* @param headerValues the header value(s)
@@ -427,8 +427,8 @@ interface Builder {
427427
Builder cookie(String name, String... values);
428428

429429
/**
430-
* Manipulate this request's cookies with the given consumer. The
431-
* map provided to the consumer is "live", so that the consumer can be used to
430+
* Manipulate this request's cookies with the given consumer.
431+
* The map provided to the consumer is "live", so that the consumer can be used to
432432
* {@linkplain MultiValueMap#set(Object, Object) overwrite} existing header values,
433433
* {@linkplain MultiValueMap#remove(Object) remove} values, or use any of the other
434434
* {@link MultiValueMap} methods.
@@ -465,9 +465,9 @@ interface Builder {
465465
Builder attribute(String name, Object value);
466466

467467
/**
468-
* Manipulate this request's attributes with the given consumer. The map provided to the
469-
* consumer is "live", so that the consumer can be used to
470-
* {@linkplain Map#put(Object, Object) overwrite} existing header values,
468+
* Manipulate this request's attributes with the given consumer.
469+
* The map provided to the consumer is "live", so that the consumer can be used
470+
* to {@linkplain Map#put(Object, Object) overwrite} existing header values,
471471
* {@linkplain Map#remove(Object) remove} values, or use any of the other
472472
* {@link Map} methods.
473473
* @param attributesConsumer a function that consumes the attributes map

spring-webflux/src/main/java/org/springframework/web/reactive/socket/client/UndertowWebSocketClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@ public XnioWorker getXnioWorker() {
116116
/**
117117
* Set the {@link io.undertow.connector.ByteBufferPool ByteBufferPool} to pass to
118118
* {@link io.undertow.websockets.client.WebSocketClient#connectionBuilder}.
119-
* <p>By default an indirect {@link io.undertow.server.DefaultByteBufferPool} with a buffer size
120-
* of {@value #DEFAULT_POOL_BUFFER_SIZE} is used.
119+
* <p>By default an indirect {@link io.undertow.server.DefaultByteBufferPool}
120+
* with a buffer size of 8192 is used.
121121
* @since 5.0.8
122+
* @see #DEFAULT_POOL_BUFFER_SIZE
122123
*/
123124
public void setByteBufferPool(ByteBufferPool byteBufferPool) {
124125
Assert.notNull(byteBufferPool, "ByteBufferPool must not be null");

spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolHandler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727

2828
/**
2929
* A contract for handling WebSocket messages as part of a higher level protocol,
30-
* referred to as "sub-protocol" in the WebSocket RFC specification. Handles both
31-
* {@link WebSocketMessage}s from a client as well as {@link Message WebSocketMessage}s from a client as well as {@link Messages} to a client.
30+
* referred to as "sub-protocol" in the WebSocket RFC specification.
31+
* Handles both {@link WebSocketMessage WebSocketMessages} from a client
32+
* as well as {@link Message Messages} to a client.
3233
*
3334
* <p>Implementations of this interface can be configured on a
3435
* {@link SubProtocolWebSocketHandler} which selects a sub-protocol handler to

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/TransportHandlingSockJsService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
* A basic implementation of {@link org.springframework.web.socket.sockjs.SockJsService}
5454
* with support for SPI-based transport handling and session management.
5555
*
56-
* <p>Based on the {@link TransportHandler} SPI. {@link TransportHandler TransportHandler} SPI. {@link TransportHandlers} may additionally
57-
* implement the {@link SockJsSessionFactory} and {@link HandshakeHandler} interfaces.
56+
* <p>Based on the {@link TransportHandler} SPI. {@link TransportHandler TransportHandlers} may
57+
* additionally implement the {@link SockJsSessionFactory} and {@link HandshakeHandler} interfaces.
5858
*
5959
* <p>See the {@link AbstractSockJsService} base class for important details on request mapping.
6060
*

0 commit comments

Comments
 (0)