Closed ilg-ul closed 6 months ago
A better solution would be not to use exceptions for flow control. Instead you could use lookahead()
method on the chars
stream to check for the EOI
token, something along the line
int patch = EOI.isMatchedBy(chars.lookahead(1)) ? 0 : Integer.parseInt(numericIdentifier());
This is sort of a duplicate of the issue #15. I'll be providing the feature with the next release.
@zafarkhaja any ETA?
I did not check the specs, but in my application I must process partial version strings, like "1.2".
The current parser accepts only "1.2.0".
I patched the VersionParser.parseVersionCore() to:
but perhaps there are better solution.