If the user is not providing any errors, it should be a fair
game to provide just the value.
Change-Id: Iac7e5133fbe09f0e50d72597530b520778d341f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
this.output = output;
}
+ public SimpleDOMActionResult(final ContainerNode output) {
+ this.errors = ImmutableList.of();
+ this.output = requireNonNull(output);
+ }
+
@SuppressFBWarnings("NP_NULL_PARAM_DEREF_NONVIRTUAL")
public SimpleDOMActionResult(final Collection<RpcError> errors) {
this(errors, null);