Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use exceptions for control flow in StringTokenizer.lookAhead
It's easier to check if we are out of buffer bounds and return '\0'. Motivation: - it's easier to debug cases when we need to set breakpoint on any exeception because we have a much less noise. - theoretically it should be a little bit faster. But I'm too lazy to write a benchmark.
- Loading branch information