cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <>
Subject [GitHub] cloudstack pull request: Quota master
Date Wed, 26 Aug 2015 06:22:20 GMT
Github user jburwell commented on a diff in the pull request:
    --- Diff: server/src/com/cloud/api/dispatch/ ---
    @@ -294,6 +294,14 @@ private void setFieldValue(final Field field, final BaseCmd cmdObj,
final Object
                         field.set(cmdObj, Float.valueOf(paramObj.toString()));
    +            case DOUBLE:
    +                // Assuming that the parameters have been checked for required before
    +                // we ignore blank or null values and defer to the command to set a default
    +                // value for optional parameters ...
    +                if (paramObj != null && isNotBlank(paramObj.toString())) {
    --- End diff --
    Consider using ```` method which consolidates
the null and blank checks.

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

View raw message