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