commit | a09e1bbdbd58ca16c40e221720514d3b6c5577c4 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Mon Aug 01 14:25:25 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Aug 09 17:44:13 2016 +0000 |
tree | 7b90d478ce6f4c121fe44ee20ec76caa05bb5837 | |
parent | c13082f7fbc1333d6e926aee8e571a9f483e604f [diff] [blame] |
Use Collection#forEach() instead of Stream#forEach() for simplicity Change-Id: I0a1aea4bdb5d305c50273e6ff749fe71bd2a295a
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/LinkCollectionIntentFlowObjectivesCompiler.java b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/LinkCollectionIntentFlowObjectivesCompiler.java index 0358d29..09c7037a 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/LinkCollectionIntentFlowObjectivesCompiler.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/compiler/LinkCollectionIntentFlowObjectivesCompiler.java
@@ -120,13 +120,11 @@ .collect(Collectors.toSet()); TrafficTreatment.Builder defaultTreatmentBuilder = DefaultTrafficTreatment.builder(); - outPorts.stream() - .forEach(defaultTreatmentBuilder::setOutput); + outPorts.forEach(defaultTreatmentBuilder::setOutput); TrafficTreatment defaultTreatment = defaultTreatmentBuilder.build(); TrafficTreatment.Builder ingressTreatmentBuilder = DefaultTrafficTreatment.builder(intent.treatment()); - outPorts.stream() - .forEach(ingressTreatmentBuilder::setOutput); + outPorts.forEach(ingressTreatmentBuilder::setOutput); TrafficTreatment ingressTreatment = ingressTreatmentBuilder.build(); List<Objective> objectives = new ArrayList<>(inPorts.size());