>           ScalingPolicyResponse scalingPolicyResponse = 
>                 new ScalingPolicyResponse(
>                       (String)scalingPolicyMap.get("name"),
>                       
> ScalingPolicyType.getByValue((String)scalingPolicyMap.get("type")).get(),
>                       ((Double)scalingPolicyMap.get("cooldown")).intValue(),
> -                     
> ((Double)scalingPolicyMap.get(targetType.toString())).intValue(),
> -                     targetType,
> -                     ImmutableList.copyOf(links),
> -                     (String) scalingPolicyMap.get("id")
> +                     Math.floor(d) == d ? Integer.toString(d.intValue()) : 
> Double.toString(d), 

`equals` instead of ==?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/39/files#r7234862

Reply via email to