Skip to content

Commit

Permalink
Perform immutable copy after null check
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr authored and electrum committed Jan 23, 2017
1 parent f9c10e1 commit 0f4242c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -136,8 +136,8 @@ public OptionsJson(
@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");
}

Expand Down

0 comments on commit 0f4242c

Please sign in to comment.