Skip to content

Commit b677206

Browse files
committed
Polish Javadoc
1 parent e04ca3d commit b677206

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsert.java

Lines changed: 3 additions & 3 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-2021 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.
@@ -33,10 +33,10 @@
3333
*
3434
* <p>The meta-data processing is based on the DatabaseMetaData provided by the
3535
* JDBC driver. As long as the JDBC driver can provide the names of the columns
36-
* for a specified table than we can rely on this auto-detection feature. If that
36+
* for a specified table then we can rely on this auto-detection feature. If that
3737
* is not the case, then the column names must be specified explicitly.
3838
*
39-
* <p>The actual insert is being handled using Spring's {@link JdbcTemplate}.
39+
* <p>The actual insert is handled using Spring's {@link JdbcTemplate}.
4040
*
4141
* <p>Many of the configuration methods return the current instance of the
4242
* SimpleJdbcInsert to provide the ability to chain multiple ones together

spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/RequestPartMethodArgumentResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 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.
@@ -47,7 +47,7 @@
4747
* for a single value (e.g. Reactor {@code Mono}, RxJava {@code Single}).
4848
*
4949
* <p>This resolver also supports arguments of type {@link Part} which may be
50-
* wrapped with are reactive type for a single or multiple values.
50+
* wrapped with a reactive type for a single value or multiple values.
5151
*
5252
* @author Rossen Stoyanchev
5353
* @since 5.0

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2021 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.
@@ -54,14 +54,17 @@
5454
* 'Content-Type' of the request part in mind. This is analogous to what @{@link RequestBody}
5555
* does to resolve an argument based on the content of a regular request.
5656
*
57-
* <p>When a parameter is not annotated or the name of the part is not specified,
58-
* it is derived from the name of the method argument.
57+
* <p>When a parameter is not annotated with {@code @RequestPart} or the name of
58+
* the part is not specified, the request part's name is derived from the name of
59+
* the method argument.
5960
*
6061
* <p>Automatic validation may be applied if the argument is annotated with
6162
* {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
62-
* or custom annotations whose name starts with "Valid". In case of validation failure,
63-
* a {@link MethodArgumentNotValidException} is raised and a 400 response status code returned if
64-
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver} is configured.
63+
* annotation, or a custom annotation whose name starts with "Valid". In case of
64+
* validation failure, a {@link MethodArgumentNotValidException} is raised and a
65+
* 400 response status code returned if the
66+
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver}
67+
* is configured.
6568
*
6669
* @author Rossen Stoyanchev
6770
* @author Brian Clozel
@@ -78,7 +81,7 @@ public RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageCo
7881
}
7982

8083
/**
81-
* Constructor with converters and {@code Request~} and
84+
* Constructor with converters and {@code RequestBodyAdvice} and
8285
* {@code ResponseBodyAdvice}.
8386
*/
8487
public RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageConverters,
@@ -89,8 +92,8 @@ public RequestPartMethodArgumentResolver(List<HttpMessageConverter<?>> messageCo
8992

9093

9194
/**
92-
* Whether the given {@linkplain MethodParameter method parameter} is a multi-part
93-
* supported. Supports the following:
95+
* Whether the given {@linkplain MethodParameter method parameter} is
96+
* supported as multi-part. Supports the following method parameters:
9497
* <ul>
9598
* <li>annotated with {@code @RequestPart}
9699
* <li>of type {@link MultipartFile} unless annotated with {@code @RequestParam}

0 commit comments

Comments
 (0)