mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 08:29:09 +00:00
Cleaner type-inference assistance
This commit is contained in:
parent
05430a788a
commit
fbe736c9bb
@ -80,14 +80,12 @@ public class GceComputeServiceImpl extends AbstractLifecycleComponent<GceCompute
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// assist type inference
|
// assist type inference
|
||||||
List<Instance> items = instanceList.isEmpty() ? Collections.emptyList() : instanceList.getItems();
|
return instanceList.isEmpty() ? Collections.<Instance>emptyList() : instanceList.getItems();
|
||||||
return items;
|
|
||||||
} catch (PrivilegedActionException e) {
|
} catch (PrivilegedActionException e) {
|
||||||
logger.warn("Problem fetching instance list for zone {}", zoneId);
|
logger.warn("Problem fetching instance list for zone {}", zoneId);
|
||||||
logger.debug("Full exception:", e);
|
logger.debug("Full exception:", e);
|
||||||
// assist type inference
|
// assist type inference
|
||||||
List<Instance> items = Collections.emptyList();
|
return Collections.<Instance>emptyList();
|
||||||
return items;
|
|
||||||
}
|
}
|
||||||
}).reduce(new ArrayList<>(), (a, b) -> {
|
}).reduce(new ArrayList<>(), (a, b) -> {
|
||||||
a.addAll(b);
|
a.addAll(b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user