Github user eribeiro commented on a diff in the pull request:
https://github.com/apache/zookeeper/pull/155#discussion_r97746755
--- Diff: src/java/main/org/apache/zookeeper/version/util/VerGen.java ---
@@ -149,11 +150,9 @@ public static void main(String[] args) {
"Invalid version number format, must be
\"x.y.z(-.*)?\"");
System.exit(1);
}
- int rev;
- try {
- rev = Integer.parseInt(args[1]);
- } catch (NumberFormatException e) {
- rev = -1;
+ String rev = args[1];
+ if (rev == null || rev.trim().isEmpty()) {
+ rev = "-1";
}
--- End diff --
Oh, really sorry about that. :disappointed: I squashed the commits from
#137, but for whatever reason this latest change didn't make through.
:thinking: Well, gonna change now. Thanks for pointing out!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---