Github user ramith commented on a diff in the pull request:

    https://github.com/apache/stratos/pull/119#discussion_r22095342
  
    --- Diff: 
components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/util/Util.java
 ---
    @@ -94,12 +101,17 @@ else if (isNumber(array[0]) && "*".equals(array[1])) {
                        throw new RuntimeException(String.format("Tenant range 
%s is not valid", tenantRange));
        }
     
    -    public static boolean isNumber(String s) {
    +   /**
    +    * Check given string is a number
    +    * @param inputStr String to be checked
    +    * @return Boolean of given string is a number
    +    */
    +    public static boolean isNumber(String inputStr) {
             try {
    -            Integer.parseInt(s);
    +            Integer.parseInt(inputStr);
    --- End diff --
    
    
https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/math/NumberUtils.html#isNumber%28java.lang.String%29
 can't be of use?


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to