>
> - for (Rule rule : fw.getAllowed()) {
> - if (!rule.getPorts().isEmpty()) {
> - for (Range<Integer> r : rule.getPorts().asRanges()) {
> - IpPermission.Builder builder = populateBuilder(fw,
> rule.getIpProtocol());
> - builder.fromPort(r.lowerEndpoint());
> - builder.toPort(r.upperEndpoint());
> - setBuilder.add(builder.build());
> + for (Rule rule : fw.allowed()) {
> + if (rule.ports() != null && !rule.ports().isEmpty()) {
[minor] Avoiding Guava here, otherwise use `nullToEmpty` or so?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/73/files#r19764251