Perform immutable copy after null check
@@ -136,8 +136,8 @@ public class Suite
@JsonProperty("session") Map<String, String> session,
@JsonProperty("query") List<String> query)
{
- this.schema = requireNonNull(ImmutableList.copyOf(schema), "schema is null");
- this.session = requireNonNull(ImmutableMap.copyOf(session), "session is null");
+ this.schema = ImmutableList.copyOf(requireNonNull(schema, "schema is null"));
+ this.session = ImmutableMap.copyOf(requireNonNull(session, "session is null"));
this.query = requireNonNull(query, "query is null");
}
