throw new ParserException(MessageFormat.format(UNEXPECTED_TOKEN_MESSAGE, new Object[] {
token, tokeniser.sval,
}), getLineNumber(tokeniser, in));</BUG>
}
}
<BUG>else if (!token.equals(tokeniser.sval)) {
throw new ParserException(MessageFormat.format(UNEXPECTED_TOKEN_MESSAGE, new Object[] {
token, tokeniser.sval,
}), getLineNumber(tokeniser, in));</BUG>
}

private void assertToken(final StreamTokenizer tokeniser, Reader in,
final String token, final boolean ignoreCase) throws IOException,
ParserException {
assertToken(tokeniser, in, StreamTokenizer.TT_WORD);
if (ignoreCase) {
if (!token.equalsIgnoreCase(tokeniser.sval)) {
throw new ParserException(MessageFormat.format(UNEXPECTED_TOKEN_MESSAGE, token, tokeniser.sval), getLineNumber(tokeniser, in));
}
}
else if (!token.equals(tokeniser.sval)) {
throw new ParserException(MessageFormat.format(UNEXPECTED_TOKEN_MESSAGE, token, tokeniser.sval), getLineNumber(tokeniser, in));
}
