Skip to content

Commit

Permalink
[grid] Fixing previous commit, always making a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev authored and Grigory Mischenko committed Sep 20, 2018
1 parent aa39c97 commit 9c980b5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -168,8 +168,8 @@ public GridNodeConfiguration() {
public GridNodeConfiguration(NodeJsonConfiguration jsonConfig) {
super(jsonConfig);
role = ROLE;
capabilities = ofNullable(jsonConfig.getCapabilities())
.orElse(new ArrayList<>(DEFAULT_CONFIG_FROM_JSON.getCapabilities()));
capabilities = new ArrayList<>(ofNullable(jsonConfig.getCapabilities())
.orElse(DEFAULT_CONFIG_FROM_JSON.getCapabilities()));
maxSession = ofNullable(jsonConfig.getMaxSession())
.orElse(DEFAULT_CONFIG_FROM_JSON.getMaxSession());
register = ofNullable(jsonConfig.getRegister())
Expand Down

0 comments on commit 9c980b5

Please sign in to comment.