Closed Kubuxu closed 1 year ago
Hi @Kubuxu, thank you for the report.
I know it's not used, it's there just for the sake of Parser.parse(String input) signature compatibility to correctly implement the method. It felt right in the beginning to have a functional interface for the Parser
which is also implemented by ExpressionParser. However, due to some previous design decisions, I failed to implement the VersionParser
as a pure function, so it remains like that. At least for now.
Oh. Would be it possible to annotate that in JavaDoc of this function in VersionParser
. I was a little bit confused while reading that.
Sorry for the delay. Of course, I'll do so as soon as possible unless you want to submit a pull request.
This method does not use
input
parameter: https://github.com/zafarkhaja/jsemver/blob/master/src/main/java/com/github/zafarkhaja/semver/VersionParser.java#L180