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

    https://github.com/apache/incubator-storm/pull/187#discussion_r14834365
  
    --- Diff: storm-core/src/jvm/backtype/storm/ConfigValidation.java ---
    @@ -82,6 +82,76 @@ public void validateField(String name, Object field)
         public static Object MapsValidator = 
FieldListValidatorFactory(Map.class);
     
         /**
    +     * Validates a Integer.
    +     */
    +    public static Object IntegerValidator = new FieldValidator() {
    +        @Override
    +        public void validateField(String name, Object o) throws 
IllegalArgumentException {
    +            if (o == null) {
    +                // A null value is acceptable.
    --- End diff --
    
    Before this change, a null value for these fields would throw an exception:
    
https://github.com/apache/incubator-storm/blob/master/storm-core/src/clj/backtype/storm/config.clj#L51
    
    Now, when it is null, it will pass validation.
    
    This is probably fine, but wanted to bring it up since it is a change.
    
    (This is not the case with the new `IntegersValidator` below.)


---
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.
---

Reply via email to