Skip to content

Commit 6f494ef

Browse files
marcwrobelsbrannen
authored andcommitted
Fix and improve Javadoc in spring-web
Closes gh-28791
1 parent 1970480 commit 6f494ef

File tree

61 files changed

+101
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+101
-101
lines changed

spring-web/src/main/java/org/springframework/http/ContentDisposition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ private static String escapeQuotationsInFilename(String filename) {
515515
}
516516
escaped = (!escaped && c == '\\');
517517
}
518-
// Remove backslash at the end..
518+
// Remove backslash at the end.
519519
if (escaped) {
520520
sb.deleteCharAt(sb.length() - 1);
521521
}

spring-web/src/main/java/org/springframework/http/HttpCookie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* Represents an HTTP cookie as a name-value pair consistent with the content of
24-
* the "Cookie" request header. The {@link ResponseCookie} sub-class has the
24+
* the "Cookie" request header. The {@link ResponseCookie} subclass has the
2525
* additional attributes expected in the "Set-Cookie" response header.
2626
*
2727
* @author Rossen Stoyanchev

spring-web/src/main/java/org/springframework/http/HttpHeaders.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ protected List<String> getETagValuesAsList(String headerName) {
16001600
}
16011601

16021602
/**
1603-
* Retrieve a combined result from the field values of multi-valued headers.
1603+
* Retrieve a combined result from the field values of multivalued headers.
16041604
* @param headerName the header name
16051605
* @return the combined result
16061606
* @since 4.3

spring-web/src/main/java/org/springframework/http/ReactiveHttpInputMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.springframework.core.io.buffer.DataBuffer;
2323

2424
/**
25-
* An "reactive" HTTP input message that exposes the input as {@link Publisher}.
25+
* A "reactive" HTTP input message that exposes the input as {@link Publisher}.
2626
*
2727
* <p>Typically implemented by an HTTP request on the server-side or a response
2828
* on the client-side.

spring-web/src/main/java/org/springframework/http/ResponseCookie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static ResponseCookieBuilder from(final String name, final String value)
194194
/**
195195
* Factory method to obtain a builder for a server-defined cookie. Unlike
196196
* {@link #from(String, String)} this option assumes input from a remote
197-
* server, which can be handled more leniently, e.g. ignoring a empty domain
197+
* server, which can be handled more leniently, e.g. ignoring an empty domain
198198
* name with double quotes.
199199
* @param name the cookie name
200200
* @param value the cookie value

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
/**
3434
* Wraps another {@link ClientHttpRequest} and delegates all methods to it.
35-
* Sub-classes can override specific methods selectively.
35+
* Subclasses can override specific methods selectively.
3636
*
3737
* @author Rossen Stoyanchev
3838
* @since 5.0

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Wraps another {@link ClientHttpResponse} and delegates all methods to it.
30-
* Sub-classes can override specific methods selectively.
30+
* Subclasses can override specific methods selectively.
3131
*
3232
* @author Rossen Stoyanchev
3333
* @since 5.0

spring-web/src/main/java/org/springframework/http/codec/CodecConfigurer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* <li>Catch-all readers or writers, e.g. String with any media type.
4545
* </ol>
4646
*
47-
* <p>Typed and object readers are further sub-divided and ordered as follows:
47+
* <p>Typed and object readers are further subdivided and ordered as follows:
4848
* <ol>
4949
* <li>Default HTTP reader and writer registrations.
5050
* <li>Custom readers and writers.

spring-web/src/main/java/org/springframework/http/codec/HttpMessageWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ default List<MediaType> getWritableMediaTypes(ResolvableType elementType) {
7676
boolean canWrite(ResolvableType elementType, @Nullable MediaType mediaType);
7777

7878
/**
79-
* Write an given stream of object to the output message.
79+
* Write a given stream of object to the output message.
8080
* @param inputStream the objects to write
8181
* @param elementType the type of objects in the stream which must have been
8282
* previously checked via {@link #canWrite(ResolvableType, MediaType)}

spring-web/src/main/java/org/springframework/http/codec/multipart/DefaultPartHttpMessageReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void setMaxInMemorySize(int maxInMemorySize) {
115115
* Configure the maximum amount of disk space allowed for file parts.
116116
* <p>By default this is set to -1, meaning that there is no maximum.
117117
* <p>Note that this property is ignored when
118-
* {@linkplain #setStreaming(boolean) streaming} is enabled, , or when
118+
* {@linkplain #setStreaming(boolean) streaming} is enabled, or when
119119
* {@link #setMaxInMemorySize(int) maxInMemorySize} is set to -1.
120120
*/
121121
public void setMaxDiskUsagePerPart(long maxDiskUsagePerPart) {

0 commit comments

Comments
 (0)