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/statistic/impl/FlowStatisticManager.java b/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java index fce7780..487e9af 100644 --- a/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java +++ b/core/net/src/main/java/org/onosproject/net/statistic/impl/FlowStatisticManager.java
@@ -601,7 +601,7 @@ } private void checkLoadValidity(Set<FlowEntry> current, Set<FlowEntry> previous) { - current.stream().forEach(c -> { + current.forEach(c -> { FlowEntry f = previous.stream().filter(p -> c.equals(p)). findAny().orElse(null); if (f != null && c.bytes() < f.bytes()) {