Skip to content

Commit 92228f9

Browse files
committed
Fix recent javadoc errors
Issue: SPR-17174
1 parent fb083a3 commit 92228f9

File tree

15 files changed

+91
-84
lines changed

15 files changed

+91
-84
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,9 @@ public String toString() {
347347

348348

349349
/**
350-
* Custom implementation of Java 6's {@code ResourceBundle.Control},
351-
* adding support for custom file encodings, deactivating the fallback to the
352-
* system locale and activating ResourceBundle's native cache, if desired.
350+
* Custom implementation of {@code ResourceBundle.Control}, adding support
351+
* for custom file encodings, deactivating the fallback to the system locale
352+
* and activating ResourceBundle's native cache, if desired.
353353
*/
354354
private class MessageSourceControl extends ResourceBundle.Control {
355355

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,24 @@ public ReactorNettyTcpClient(String host, int port, ReactorNettyCodec<P> codec)
102102
}
103103

104104
/**
105-
* Constructor with a {@link ClientOptions.Builder} that can be used to
105+
* Constructor with a {@code ClientOptions.Builder} that can be used to
106106
* customize Reactor Netty client options.
107-
*
108107
* <p><strong>Note: </strong> this constructor manages the lifecycle of the
109108
* {@link TcpClient} and its underlying resources. Please do not customize
110109
* any of the following options:
111-
* {@link ClientOptions.Builder#channelGroup(ChannelGroup) ChannelGroup},
112-
* {@link ClientOptions.Builder#loopResources(LoopResources) LoopResources}, and
113-
* {@link ClientOptions.Builder#poolResources(PoolResources) PoolResources}.
114-
* You may set the {@link ClientOptions.Builder#disablePool() disablePool}
110+
* {@code ClientOptions.Builder#channelGroup(ChannelGroup) ChannelGroup},
111+
* {@code ClientOptions.Builder#loopResources(LoopResources) LoopResources}, and
112+
* {@code ClientOptions.Builder#poolResources(PoolResources) PoolResources}.
113+
* You may set the {@code ClientOptions.Builder#disablePool() disablePool}
115114
* option if you simply want to turn off pooling.
116-
*
117115
* <p>For full control over the initialization and lifecycle of the TcpClient,
118116
* see {@link #ReactorNettyTcpClient(TcpClient, ReactorNettyCodec)}.
119-
*
120117
* @param optionsConsumer consumer to customize client options
121118
* @param codec the code to use
122119
* @see org.springframework.messaging.simp.stomp.StompReactorNettyCodec
123120
*/
124-
public ReactorNettyTcpClient(Consumer<ClientOptions.Builder<?>> optionsConsumer,
125-
ReactorNettyCodec<P> codec) {
121+
public ReactorNettyTcpClient(
122+
Consumer<ClientOptions.Builder<?>> optionsConsumer, ReactorNettyCodec<P> codec) {
126123

127124
Assert.notNull(optionsConsumer, "Consumer<ClientOptions.Builder<?> is required");
128125
Assert.notNull(codec, "ReactorNettyCodec is required");
@@ -155,7 +152,6 @@ public ReactorNettyTcpClient(Consumer<ClientOptions.Builder<?>> optionsConsumer,
155152
/**
156153
* Constructor with an externally created {@link TcpClient} instance whose
157154
* lifecycle is expected to be managed externally.
158-
*
159155
* @param tcpClient the TcpClient instance to use
160156
* @param codec the code to use
161157
* @see org.springframework.messaging.simp.stomp.StompReactorNettyCodec

spring-test/src/main/java/org/springframework/test/web/reactive/server/WebTestClient.java

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,10 @@ interface RouterFunctionSpec extends MockServerSpec<RouterFunctionSpec> {
359359

360360

361361
/**
362-
* Steps for customizing the {@link WebClient} used to test with
363-
* internally delegating to a {@link WebClient.Builder}.
362+
* Steps for customizing the {@link WebClient} used to test with,
363+
* internally delegating to a
364+
* {@link org.springframework.web.reactive.function.client.WebClient.Builder
365+
* WebClient.Builder}.
364366
*/
365367
interface Builder {
366368

@@ -443,7 +445,8 @@ interface Builder {
443445
Builder responseTimeout(Duration timeout);
444446

445447
/**
446-
* Shortcut for pre-packaged customizations to WebTestClient builder.
448+
* Apply the given configurer to this builder instance.
449+
* <p>This can be useful for applying pre-packaged customizations.
447450
* @param configurer the configurer to apply
448451
*/
449452
Builder apply(WebTestClientConfigurer configurer);
@@ -591,6 +594,9 @@ interface RequestHeadersSpec<S extends RequestHeadersSpec<S>> {
591594
}
592595

593596

597+
/**
598+
* Specification for providing body of a request.
599+
*/
594600
interface RequestBodySpec extends RequestHeadersSpec<RequestBodySpec> {
595601
/**
596602
* Set the length of the body in bytes, as specified by the
@@ -649,10 +655,15 @@ interface RequestBodySpec extends RequestHeadersSpec<RequestBodySpec> {
649655
}
650656

651657

658+
/**
659+
* Specification for providing request headers and the URI of a request.
660+
*/
652661
interface RequestHeadersUriSpec<S extends RequestHeadersSpec<S>> extends UriSpec<S>, RequestHeadersSpec<S> {
653662
}
654663

655-
664+
/**
665+
* Specification for providing the body and the URI of a request.
666+
*/
656667
interface RequestBodyUriSpec extends RequestBodySpec, RequestHeadersUriSpec<RequestBodySpec> {
657668
}
658669

@@ -792,7 +803,7 @@ interface BodyContentSpec {
792803
* Parse the expected and actual response content as JSON and perform a
793804
* "lenient" comparison verifying the same attribute-value pairs.
794805
* <p>Use of this option requires the
795-
* <a href="http://jsonassert.skyscreamer.org/">JSONassert<a/> library
806+
* <a href="http://jsonassert.skyscreamer.org/">JSONassert</a> library
796807
* on to be on the classpath.
797808
* @param expectedJson the expected JSON content.
798809
*/

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/client/reactive/ReactorClientHttpConnector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -53,7 +53,7 @@ public ReactorClientHttpConnector() {
5353

5454
/**
5555
* Create a Reactor Netty {@link ClientHttpConnector} with the given
56-
* {@link HttpClientOptions.Builder}
56+
* {@code HttpClientOptions.Builder}
5757
*/
5858
public ReactorClientHttpConnector(Consumer<? super HttpClientOptions.Builder> clientOptions) {
5959
this.httpClient = HttpClient.create(clientOptions);

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -41,15 +41,15 @@ public class ProtobufJsonFormatHttpMessageConverter extends ProtobufHttpMessageC
4141

4242
/**
4343
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with default
44-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration.
44+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration.
4545
*/
4646
public ProtobufJsonFormatHttpMessageConverter() {
4747
this(null, null, null);
4848
}
4949

5050
/**
5151
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given
52-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration.
52+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration.
5353
* @param parser the JSON parser configuration
5454
* @param printer the JSON printer configuration
5555
*/
@@ -61,8 +61,8 @@ public ProtobufJsonFormatHttpMessageConverter(
6161

6262
/**
6363
* Construct a new {@code ProtobufJsonFormatHttpMessageConverter} with the given
64-
* {@link JsonFormat.Parser} and {@link JsonFormat.Printer} configuration, also
65-
* accepting an initializer that allows the registration of message extensions
64+
* {@code JsonFormat.Parser} and {@code JsonFormat.Printer} configuration, also
65+
* accepting an initializer that allows the registration of message extensions.
6666
* @param parser the JSON parser configuration
6767
* @param printer the JSON printer configuration
6868
* @param registryInitializer an initializer for message extensions

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: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -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
@@ -101,7 +101,6 @@ protected void handleError(ClientHttpResponse response, HttpStatus statusCode) t
101101
}
102102
}
103103

104-
105104
/**
106105
* Determine the HTTP status of the given response.
107106
* @param response the response to inspect

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -29,25 +29,25 @@
2929
import org.springframework.util.CollectionUtils;
3030

3131
/**
32-
* Implementation of {@link ResponseErrorHandler} that uses {@link HttpMessageConverter}s to
33-
* convert HTTP error responses to {@link RestClientException}.
32+
* Implementation of {@link ResponseErrorHandler} that uses {@link HttpMessageConverter}s
33+
* to convert HTTP error responses to {@link RestClientException}.
3434
*
3535
* <p>To use this error handler, you must specify a
3636
* {@linkplain #setStatusMapping(Map) status mapping} and/or a
3737
* {@linkplain #setSeriesMapping(Map) series mapping}. If either of these mappings has a match
3838
* for the {@linkplain ClientHttpResponse#getStatusCode() status code} of a given
3939
* {@code ClientHttpResponse}, {@link #hasError(ClientHttpResponse)} will return
40-
* {@code true} and {@link #handleError(ClientHttpResponse)} will attempt to use the
40+
* {@code true}, and {@link #handleError(ClientHttpResponse)} will attempt to use the
4141
* {@linkplain #setMessageConverters(List) configured message converters} to convert the response
4242
* into the mapped subclass of {@link RestClientException}. Note that the
4343
* {@linkplain #setStatusMapping(Map) status mapping} takes precedence over
4444
* {@linkplain #setSeriesMapping(Map) series mapping}.
4545
*
4646
* <p>If there is no match, this error handler will default to the behavior of
47-
* {@link DefaultResponseErrorHandler}. Note that you can override this default behavior by
48-
* specifying a {@linkplain #setSeriesMapping(Map) series mapping} from
49-
* {@link HttpStatus.Series#CLIENT_ERROR} and/or {@link HttpStatus.Series#SERVER_ERROR} to
50-
* {@code null}.
47+
* {@link DefaultResponseErrorHandler}. Note that you can override this default behavior
48+
* by specifying a {@linkplain #setSeriesMapping(Map) series mapping} from
49+
* {@code HttpStatus.Series#CLIENT_ERROR} and/or {@code HttpStatus.Series#SERVER_ERROR}
50+
* to {@code null}.
5151
*
5252
* @author Simon Galperin
5353
* @author Arjen Poutsma

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 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.
@@ -657,7 +657,7 @@ <T> ResponseEntity<T> exchange(RequestEntity<?> requestEntity, ParameterizedType
657657
throws RestClientException;
658658

659659

660-
// general execution
660+
// General execution
661661

662662
/**
663663
* Execute the HTTP method to the given URI template, preparing the request with the

0 commit comments

Comments
 (0)