From decb22a93de643bbe07f245c6374f7f8f9ae9ee8 Mon Sep 17 00:00:00 2001 From: dogglezz Date: Sat, 2 Dec 2023 21:09:16 +0900 Subject: [PATCH] Polish Javadoc Closes gh-31738 --- .../web/accept/AbstractMappingContentNegotiationStrategy.java | 2 +- .../web/accept/MappingMediaTypeFileExtensionResolver.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java b/spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java index 62a650d3c4d..346e427f108 100644 --- a/spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java +++ b/spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java @@ -69,7 +69,7 @@ public abstract class AbstractMappingContentNegotiationStrategy extends MappingM /** * Whether to only use the registered mappings to look up file extensions, - * or also to use dynamic resolution (e.g. via {@link MediaTypeFactory}. + * or also to use dynamic resolution (e.g. via {@link MediaTypeFactory}). *

By default this is set to {@code false}. */ public void setUseRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) { diff --git a/spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeFileExtensionResolver.java b/spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeFileExtensionResolver.java index a0ee49a5695..6cd381cebe2 100644 --- a/spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeFileExtensionResolver.java +++ b/spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeFileExtensionResolver.java @@ -35,7 +35,7 @@ import org.springframework.lang.Nullable; * lookups between file extensions and MediaTypes in both directions. * *

Initially created with a map of file extensions and media types. - * Subsequently subclasses can use {@link #addMapping} to add more mappings. + * Subsequently, subclasses can use {@link #addMapping} to add more mappings. * * @author Rossen Stoyanchev * @author Juergen Hoeller