Skip to content

Commit 992a81a

Browse files
committed
Merge branch '5.3.x'
# Conflicts: # spring-web/src/main/java/org/springframework/web/util/WebUtils.java
2 parents af2481f + 50dff77 commit 992a81a

File tree

12 files changed

+30
-28
lines changed

12 files changed

+30
-28
lines changed

spring-context/src/main/java/org/springframework/cache/Cache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 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,7 +24,7 @@
2424
* Interface that defines common cache operations.
2525
*
2626
* <b>Note:</b> Due to the generic use of caching, it is recommended that
27-
* implementations allow storage of <tt>null</tt> values (for example to
27+
* implementations allow storage of {@code null} values (for example to
2828
* cache methods that return {@code null}).
2929
*
3030
* @author Costin Leau

spring-core/src/main/java/org/springframework/core/annotation/AnnotationTypeMappings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ int size() {
153153
* @param index the index to return
154154
* @return the {@link AnnotationTypeMapping}
155155
* @throws IndexOutOfBoundsException if the index is out of range
156-
* (<tt>index &lt; 0 || index &gt;= size()</tt>)
156+
* ({@code index < 0 || index >= size()})
157157
*/
158158
AnnotationTypeMapping get(int index) {
159159
return this.mappings.get(index);

spring-core/src/main/java/org/springframework/core/annotation/AttributeMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Method get(String name) {
168168
* @param index the index of the attribute to return
169169
* @return the attribute method
170170
* @throws IndexOutOfBoundsException if the index is out of range
171-
* (<tt>index &lt; 0 || index &gt;= size()</tt>)
171+
* ({@code index < 0 || index >= size()})
172172
*/
173173
Method get(int index) {
174174
return this.attributeMethods[index];

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -238,7 +238,7 @@ public Annotation[] getAnnotations() {
238238
* <p>As of Spring Framework 4.2, this method supports arbitrary levels
239239
* of meta-annotations.
240240
* @param annotationType the annotation type
241-
* @return <tt>true</tt> if the annotation is present
241+
* @return {@code true} if the annotation is present
242242
*/
243243
public boolean hasAnnotation(Class<? extends Annotation> annotationType) {
244244
if (this.annotatedElement.isEmpty()) {
@@ -273,8 +273,8 @@ public <T extends Annotation> T getAnnotation(Class<T> annotationType) {
273273
* On the other hand, {@code valueOf(Number.class).isAssignableTo(valueOf(Integer.class))}
274274
* returns {@code false} because, while all Integers are Numbers, not all Numbers are Integers.
275275
* <p>For arrays, collections, and maps, element and key/value types are checked if declared.
276-
* For example, a List&lt;String&gt; field value is assignable to a Collection&lt;CharSequence&gt;
277-
* field, but List&lt;Number&gt; is not assignable to List&lt;Integer&gt;.
276+
* For example, a {@code List<String>} field value is assignable to a {@code Collection<CharSequence>}
277+
* field, but {@code List<Number>} is not assignable to {@code List<Integer>}.
278278
* @return {@code true} if this type is assignable to the type represented by the provided
279279
* type descriptor
280280
* @see #getObjectType()
@@ -575,7 +575,7 @@ public static TypeDescriptor collection(Class<?> collectionType, @Nullable TypeD
575575
/**
576576
* Create a new type descriptor from a {@link java.util.Map} type.
577577
* <p>Useful for converting to typed Maps.
578-
* <p>For example, a Map&lt;String, String&gt; could be converted to a Map&lt;Id, EmailAddress&gt;
578+
* <p>For example, a {@code Map<String, String>} could be converted to a {@code Map<Id, EmailAddress>}
579579
* by converting to a targetType built with this method:
580580
* The method call to construct such a TypeDescriptor would look something like:
581581
* <pre class="code">

spring-core/src/main/java/org/springframework/core/convert/converter/ConvertingComparator.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-2022 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.
@@ -104,7 +104,7 @@ public static <K, V> ConvertingComparator<Map.Entry<K, V>, V> mapEntryValues(Com
104104

105105

106106
/**
107-
* Adapts a {@link ConversionService} and <tt>targetType</tt> to a {@link Converter}.
107+
* Adapts a {@link ConversionService} and {@code targetType} to a {@link Converter}.
108108
*/
109109
private static class ConversionServiceConverter<S, T> implements Converter<S, T> {
110110

spring-core/src/main/java/org/springframework/core/io/buffer/DataBuffer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
* the following invariant holds for the read and write positions, and the capacity:
3939
*
4040
* <blockquote>
41-
* <tt>0</tt> <tt>&lt;=</tt>
42-
* <i>readPosition</i> <tt>&lt;=</tt>
43-
* <i>writePosition</i> <tt>&lt;=</tt>
41+
* {@code 0} {@code <=}
42+
* <i>readPosition</i> {@code <=}
43+
* <i>writePosition</i> {@code <=}
4444
* <i>capacity</i>
4545
* </blockquote>
4646
*

spring-core/src/main/java/org/springframework/util/AntPathMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ public Comparator<String> getPatternComparator(String path) {
642642
/**
643643
* Tests whether a string matches against a pattern via a {@link Pattern}.
644644
* <p>The pattern may contain special characters: '*' means zero or more characters; '?' means one and
645-
* only one character; '{' and '}' indicate a URI template pattern. For example <tt>/users/{user}</tt>.
645+
* only one character; '{' and '}' indicate a URI template pattern. For example {@code /users/{user}}.
646646
*/
647647
protected static class AntPathStringMatcher {
648648

spring-core/src/main/java/org/springframework/util/FastByteArrayOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void close() {
150150

151151
/**
152152
* Convert the buffer's contents into a string decoding bytes using the
153-
* platform's default character set. The length of the new <tt>String</tt>
153+
* platform's default character set. The length of the new {@code String}
154154
* is a function of the character set, and hence may not be equal to the
155155
* size of the buffer.
156156
* <p>This method always replaces malformed-input and unmappable-character

spring-web/src/main/java/org/springframework/web/util/WebUtils.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -629,17 +629,17 @@ public static String findParameterValue(ServletRequest request, String name) {
629629
* following algorithm:
630630
* <ol>
631631
* <li>Try to get the parameter value using just the given <i>logical</i> name.
632-
* This handles parameters of the form <tt>logicalName = value</tt>. For normal
632+
* This handles parameters of the form {@code logicalName = value}. For normal
633633
* parameters, e.g. submitted using a hidden HTML form field, this will return
634634
* the requested value.</li>
635635
* <li>Try to obtain the parameter value from the parameter name, where the
636-
* parameter name in the request is of the form <tt>logicalName_value = xyz</tt>
636+
* parameter name in the request is of the form {@code logicalName_value = xyz}
637637
* with "_" being the configured delimiter. This deals with parameter values
638638
* submitted using an HTML form submit button.</li>
639639
* <li>If the value obtained in the previous step has a ".x" or ".y" suffix,
640640
* remove that. This handles cases where the value was submitted using an
641641
* HTML form image button. In this case the parameter in the request would
642-
* actually be of the form <tt>logicalName_value.x = 123</tt>. </li>
642+
* actually be of the form {@code logicalName_value.x = 123}.</li>
643643
* </ol>
644644
* @param parameters the available parameter map
645645
* @param name the <i>logical</i> name of the request parameter

spring-web/src/main/java/org/springframework/web/util/pattern/InternalPathPatternParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2019 the original author or authors.
2+
* Copyright 2002-2022 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.
@@ -192,8 +192,8 @@ else if ((this.pos > (this.variableCaptureStart + 1 + (this.isCaptureTheRestVari
192192
* Just hit a ':' and want to jump over the regex specification for this
193193
* variable. pos will be pointing at the ':', we want to skip until the }.
194194
* <p>
195-
* Nested {...} pairs don't have to be escaped: <tt>/abc/{var:x{1,2}}/def</tt>
196-
* <p>An escaped } will not be treated as the end of the regex: <tt>/abc/{var:x\\{y:}/def</tt>
195+
* Nested {...} pairs don't have to be escaped: <code>/abc/{var:x{1,2}}/def</code>
196+
* <p>An escaped } will not be treated as the end of the regex: <code>/abc/{var:x\\{y:}/def</code>
197197
* <p>A separator that should not indicate the end of the regex can be escaped:
198198
*/
199199
private void skipCaptureRegex() {

0 commit comments

Comments
 (0)