#1475 - 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.
This commit is contained in:
committed by
Greg L. Turnquist
parent
5cf9fd1c29
commit
ce36feeb8c
@@ -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