I tried applying the Integer.parseInt() and the fall-back with the RegEx to the String "16" of this change. It works, both return the number 16.

java.util.regex.Pattern REVISION = java.util.regex.Pattern.compile("(\\d+)(?:\\.\\d+){0,2}");
java.util.regex.Matcher m = REVISION.matcher("16");
m.matches(); // return true
String num = m.group(1); // num is "16"
return Integer.parseInt(num); // returns 16
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to