Konstantinos Kanonakis
Committed by Gerrit Code Review

Populate listBuilder with existing conditions when creating a FilteringObjective copy.

Change-Id: Ide63c7b5e94c41c2a821b464065b86bb8b89c395
...@@ -201,7 +201,7 @@ public final class DefaultFilteringObjective implements FilteringObjective { ...@@ -201,7 +201,7 @@ public final class DefaultFilteringObjective implements FilteringObjective {
201 private Builder(FilteringObjective objective) { 201 private Builder(FilteringObjective objective) {
202 this.type = objective.type(); 202 this.type = objective.type();
203 this.key = objective.key(); 203 this.key = objective.key();
204 - this.conditions = ImmutableList.copyOf(objective.conditions()); 204 + objective.conditions().forEach(this::addCondition);
205 this.permanent = objective.permanent(); 205 this.permanent = objective.permanent();
206 this.timeout = objective.timeout(); 206 this.timeout = objective.timeout();
207 this.priority = objective.priority(); 207 this.priority = objective.priority();
......