commit | d7690cf761479ffaf6bfbbda6edff1d598e39df4 | [log] [tgz] |
---|---|---|
author | Konstantinos Kanonakis <kanonakisk@gmail.com> | Thu May 26 11:38:33 2016 -0500 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue May 31 23:27:06 2016 +0000 |
tree | aa91e600d317790ed34303f1752b49dd4232e303 | |
parent | 0005a4d83d2136f2bf8a772977f50e6fdb1ee7af [diff] |
Populate listBuilder with existing conditions when creating a FilteringObjective copy. Change-Id: Ide63c7b5e94c41c2a821b464065b86bb8b89c395
diff --git a/core/api/src/main/java/org/onosproject/net/flowobjective/DefaultFilteringObjective.java b/core/api/src/main/java/org/onosproject/net/flowobjective/DefaultFilteringObjective.java index a05bba7..0eaf348 100644 --- a/core/api/src/main/java/org/onosproject/net/flowobjective/DefaultFilteringObjective.java +++ b/core/api/src/main/java/org/onosproject/net/flowobjective/DefaultFilteringObjective.java
@@ -201,7 +201,7 @@ private Builder(FilteringObjective objective) { this.type = objective.type(); this.key = objective.key(); - this.conditions = ImmutableList.copyOf(objective.conditions()); + objective.conditions().forEach(this::addCondition); this.permanent = objective.permanent(); this.timeout = objective.timeout(); this.priority = objective.priority();