> +
> + public abstract int modifiedIndex();
> +
> + public abstract int ttl();
> +
> + @Nullable
> + public abstract String value();
> +
> + Node() {
> + }
> +
> + @SerializedNames({ "createdIndex", "dir", "nodes", "expiration", "key",
> "modifiedIndex", "ttl", "value" })
> + public static Node create(int createdIndex, boolean dir, List<Node>
> nodes, String expiration, String key,
> + int modifiedIndex, int ttl, String value) {
> + if (nodes == null)
> + nodes = ImmutableList.of();
Just apply the conditional inline when passing the parameter. We'd better avoid
changing the reference for input parameters.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/234/files#r52988397