@Nonnull public static Policy parse(@Nonnull String sourceText, @Nonnull Origin origin)

throws ParseException, TokeniserException {</BUG>
return new Parser(Tokeniser.tokenise(sourceText), origin, null).parsePolicyAndAssertEOF();
}
<BUG>@Nonnull public static Policy parse(@Nonnull String sourceText, @Nonnull String origin)

throws ParseException, TokeniserException {</BUG>
return new Parser(Tokeniser.tokenise(sourceText), URI.parse(origin), null)
.parsePolicyAndAssertEOF();

protected Parser(@Nonnull Token[] tokens, @Nonnull Origin origin,
@Nullable Collection<Notice> noticesOut) {
this.origin = origin;
this.tokens = tokens;
this.noticesOut = noticesOut;
}
@Nonnull public static Policy parse(@Nonnull String sourceText, @Nonnull Origin origin) {
return new Parser(Tokeniser.tokenise(sourceText), origin, null).parsePolicyAndAssertEOF();
}
@Nonnull public static Policy parse(@Nonnull String sourceText, @Nonnull String origin) {
return new Parser(Tokeniser.tokenise(sourceText), URI.parse(origin), null)
.parsePolicyAndAssertEOF();
