#1569 - Fix custom media type parser documentation.

Documentation for `HypermediaMappingInformation.getMediaTypes` expects to return a `List<MediaType>` which is not shown in the ref docs. Amend it with a proper parsing API as well as formatting.

See: #1475.
This commit is contained in:
Kyle Hoehns
2021-02-18 19:38:36 -06:00
committed by Greg L. Turnquist
parent 8a55fb9cad
commit 693dfa0b11

View File

@@ -858,7 +858,7 @@ public class MyMediaTypeConfiguration implements HypermediaMappingInformation {
@Override
public List<MediaType> getMediaTypes() {
return MediaType.parse("application/vnd-acme-media-type") <1>
return Collections.singletonList(MediaType.parseMediaType("application/vnd-acme-media-type")); <1>
}
@Override