Browse Source

Polish Javadoc

Closes gh-31738
pull/31741/head
dogglezz 2 years ago committed by Sam Brannen
parent
commit
decb22a93d
  1. 2
      spring-web/src/main/java/org/springframework/web/accept/AbstractMappingContentNegotiationStrategy.java
  2. 2
      spring-web/src/main/java/org/springframework/web/accept/MappingMediaTypeFileExtensionResolver.java

2
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, * 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}).
* <p>By default this is set to {@code false}. * <p>By default this is set to {@code false}.
*/ */
public void setUseRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) { public void setUseRegisteredExtensionsOnly(boolean useRegisteredExtensionsOnly) {

2
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. * lookups between file extensions and MediaTypes in both directions.
* *
* <p>Initially created with a map of file extensions and media types. * <p>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 Rossen Stoyanchev
* @author Juergen Hoeller * @author Juergen Hoeller

Loading…
Cancel
Save