mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge pull request #40971 from cmabdullah
* pr/40971: Fix typos in method names and javadoc Closes gh-40971
This commit is contained in:
commit
043d71f820
@ -76,7 +76,7 @@ public final class SanitizableData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a new {@link SanitizableData} instance with sanatized value.
|
* Return a new {@link SanitizableData} instance with sanitized value.
|
||||||
* @return a new sanitizable data instance.
|
* @return a new sanitizable data instance.
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*/
|
*/
|
||||||
|
@ -44,11 +44,11 @@ public class DiscoveredOperationMethod extends OperationMethod {
|
|||||||
Assert.notNull(annotationAttributes, "AnnotationAttributes must not be null");
|
Assert.notNull(annotationAttributes, "AnnotationAttributes must not be null");
|
||||||
List<String> producesMediaTypes = new ArrayList<>();
|
List<String> producesMediaTypes = new ArrayList<>();
|
||||||
producesMediaTypes.addAll(Arrays.asList(annotationAttributes.getStringArray("produces")));
|
producesMediaTypes.addAll(Arrays.asList(annotationAttributes.getStringArray("produces")));
|
||||||
producesMediaTypes.addAll(getProducesFromProducable(annotationAttributes));
|
producesMediaTypes.addAll(getProducesFromProducible(annotationAttributes));
|
||||||
this.producesMediaTypes = Collections.unmodifiableList(producesMediaTypes);
|
this.producesMediaTypes = Collections.unmodifiableList(producesMediaTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
private <E extends Enum<E> & Producible<E>> List<String> getProducesFromProducable(
|
private <E extends Enum<E> & Producible<E>> List<String> getProducesFromProducible(
|
||||||
AnnotationAttributes annotationAttributes) {
|
AnnotationAttributes annotationAttributes) {
|
||||||
Class<?> type = getProducesFrom(annotationAttributes);
|
Class<?> type = getProducesFrom(annotationAttributes);
|
||||||
if (type == Producible.class) {
|
if (type == Producible.class) {
|
||||||
|
Loading…
Reference in New Issue
Block a user