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/test/java/org/onosproject/cluster/impl/MastershipManagerTest.java b/core/net/src/test/java/org/onosproject/cluster/impl/MastershipManagerTest.java index 39d9e0d..0e6ef61 100644 --- a/core/net/src/test/java/org/onosproject/cluster/impl/MastershipManagerTest.java +++ b/core/net/src/test/java/org/onosproject/cluster/impl/MastershipManagerTest.java
@@ -307,7 +307,7 @@ private void checkDeviceMasters(Set<DeviceId> deviceIds, Set<NodeId> expectedMasters, Consumer<DeviceId> checkRole) { // each device's master must be contained in the list of expectedMasters - deviceIds.stream().forEach(deviceId -> { + deviceIds.forEach(deviceId -> { assertTrue("wrong master:", expectedMasters.contains(mgr.getMasterFor(deviceId))); if (checkRole != null) { checkRole.accept(deviceId);