From ce36feeb8c5e63646eda517912c85a91dd7684c1 Mon Sep 17 00:00:00 2001 From: Kyle Hoehns <9507268+kylehoehns@users.noreply.github.com> Date: Thu, 18 Feb 2021 19:38:36 -0600 Subject: [PATCH] #1475 - Fix custom media type parser documentation. Documentation for `HypermediaMappingInformation.getMediaTypes` expects to return a `List` which is not shown in the ref docs. Amend it with a proper parsing API as well as formatting. --- src/main/asciidoc/mediatypes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/mediatypes.adoc b/src/main/asciidoc/mediatypes.adoc index 5b1b38c1..8479976f 100644 --- a/src/main/asciidoc/mediatypes.adoc +++ b/src/main/asciidoc/mediatypes.adoc @@ -858,7 +858,7 @@ public class MyMediaTypeConfiguration implements HypermediaMappingInformation { @Override public List getMediaTypes() { - return MediaType.parse("application/vnd-acme-media-type") <1> + return Collections.singletonList(MediaType.parseMediaType("application/vnd-acme-media-type")); <1> } @Override