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

0 commit comments

Comments
 (0)