#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:
committed by
Greg L. Turnquist
parent
8a55fb9cad
commit
693dfa0b11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user