Merge branch '5.3.x'
# Conflicts: # spring-web/src/main/java/org/springframework/web/util/WebUtils.java
This commit is contained in:
@@ -153,7 +153,7 @@ final class AnnotationTypeMappings {
|
||||
* @param index the index to return
|
||||
* @return the {@link AnnotationTypeMapping}
|
||||
* @throws IndexOutOfBoundsException if the index is out of range
|
||||
* (<tt>index < 0 || index >= size()</tt>)
|
||||
* ({@code index < 0 || index >= size()})
|
||||
*/
|
||||
AnnotationTypeMapping get(int index) {
|
||||
return this.mappings.get(index);
|
||||
|
||||
@@ -168,7 +168,7 @@ final class AttributeMethods {
|
||||
* @param index the index of the attribute to return
|
||||
* @return the attribute method
|
||||
* @throws IndexOutOfBoundsException if the index is out of range
|
||||
* (<tt>index < 0 || index >= size()</tt>)
|
||||
* ({@code index < 0 || index >= size()})
|
||||
*/
|
||||
Method get(int index) {
|
||||
return this.attributeMethods[index];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -238,7 +238,7 @@ public class TypeDescriptor implements Serializable {
|
||||
* <p>As of Spring Framework 4.2, this method supports arbitrary levels
|
||||
* of meta-annotations.
|
||||
* @param annotationType the annotation type
|
||||
* @return <tt>true</tt> if the annotation is present
|
||||
* @return {@code true} if the annotation is present
|
||||
*/
|
||||
public boolean hasAnnotation(Class<? extends Annotation> annotationType) {
|
||||
if (this.annotatedElement.isEmpty()) {
|
||||
@@ -273,8 +273,8 @@ public class TypeDescriptor implements Serializable {
|
||||
* On the other hand, {@code valueOf(Number.class).isAssignableTo(valueOf(Integer.class))}
|
||||
* returns {@code false} because, while all Integers are Numbers, not all Numbers are Integers.
|
||||
* <p>For arrays, collections, and maps, element and key/value types are checked if declared.
|
||||
* For example, a List<String> field value is assignable to a Collection<CharSequence>
|
||||
* field, but List<Number> is not assignable to List<Integer>.
|
||||
* For example, a {@code List<String>} field value is assignable to a {@code Collection<CharSequence>}
|
||||
* field, but {@code List<Number>} is not assignable to {@code List<Integer>}.
|
||||
* @return {@code true} if this type is assignable to the type represented by the provided
|
||||
* type descriptor
|
||||
* @see #getObjectType()
|
||||
@@ -575,7 +575,7 @@ public class TypeDescriptor implements Serializable {
|
||||
/**
|
||||
* Create a new type descriptor from a {@link java.util.Map} type.
|
||||
* <p>Useful for converting to typed Maps.
|
||||
* <p>For example, a Map<String, String> could be converted to a Map<Id, EmailAddress>
|
||||
* <p>For example, a {@code Map<String, String>} could be converted to a {@code Map<Id, EmailAddress>}
|
||||
* by converting to a targetType built with this method:
|
||||
* The method call to construct such a TypeDescriptor would look something like:
|
||||
* <pre class="code">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -104,7 +104,7 @@ public class ConvertingComparator<S, T> implements Comparator<S> {
|
||||
|
||||
|
||||
/**
|
||||
* Adapts a {@link ConversionService} and <tt>targetType</tt> to a {@link Converter}.
|
||||
* Adapts a {@link ConversionService} and {@code targetType} to a {@link Converter}.
|
||||
*/
|
||||
private static class ConversionServiceConverter<S, T> implements Converter<S, T> {
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@ import org.springframework.util.Assert;
|
||||
* the following invariant holds for the read and write positions, and the capacity:
|
||||
*
|
||||
* <blockquote>
|
||||
* <tt>0</tt> <tt><=</tt>
|
||||
* <i>readPosition</i> <tt><=</tt>
|
||||
* <i>writePosition</i> <tt><=</tt>
|
||||
* {@code 0} {@code <=}
|
||||
* <i>readPosition</i> {@code <=}
|
||||
* <i>writePosition</i> {@code <=}
|
||||
* <i>capacity</i>
|
||||
* </blockquote>
|
||||
*
|
||||
|
||||
@@ -642,7 +642,7 @@ public class AntPathMatcher implements PathMatcher {
|
||||
/**
|
||||
* Tests whether a string matches against a pattern via a {@link Pattern}.
|
||||
* <p>The pattern may contain special characters: '*' means zero or more characters; '?' means one and
|
||||
* only one character; '{' and '}' indicate a URI template pattern. For example <tt>/users/{user}</tt>.
|
||||
* only one character; '{' and '}' indicate a URI template pattern. For example {@code /users/{user}}.
|
||||
*/
|
||||
protected static class AntPathStringMatcher {
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ public class FastByteArrayOutputStream extends OutputStream {
|
||||
|
||||
/**
|
||||
* Convert the buffer's contents into a string decoding bytes using the
|
||||
* platform's default character set. The length of the new <tt>String</tt>
|
||||
* platform's default character set. The length of the new {@code String}
|
||||
* is a function of the character set, and hence may not be equal to the
|
||||
* size of the buffer.
|
||||
* <p>This method always replaces malformed-input and unmappable-character
|
||||
|
||||
Reference in New Issue
Block a user