}
@Nonnull private Set<MediaType> parseMediaTypeList() throws ParseException {
</BUG>
Set<MediaType> mediaTypes = new LinkedHashSet<>();
if (!this.hasNext(DirectiveValueToken.class)) {
<BUG>throw this.createError("media-type-list must contain at least one media-type");
}
mediaTypes.add(this.parseMediaType());

while (this.hasNext(DirectiveValueToken.class)) {
mediaTypes.add(this.parseMediaType());
}</BUG>
return mediaTypes;

}
this.error("Unrecognised directive-name: " + token.value);
throw new DirectiveParseException("Invalid directive-name");
}
@Nonnull private Set<MediaType> parseMediaTypeList() throws DirectiveParseException {
Set<MediaType> mediaTypes = new LinkedHashSet<>();
if (!this.hasNext(DirectiveValueToken.class)) {
this.error("media-type-list must contain at least one media-type");
throw new DirectiveParseException("Invalid media-type-list");
