Description
The current implementation of getRecords() uses a while(true) loop, that gets canceled by an if statement:
while (true) { reusableToken.reset(); lexer.nextToken(reusableToken); // omitted if(reusableToken.type != TOKEN) { break; } }
This should be replaced by a do-while-loop:
do { reusableToken.reset(); lexer.nextToken(reusableToken); // omitted } while (reusableToken.type == TOKEN);