Simplify lambda expressions by removing braces
Change-Id: I92fc90dcbaa9ac0c10f26dd19014dc4593bd4857
diff --git a/apps/vtn/src/main/java/org/onosproject/vtn/impl/VTNManager.java b/apps/vtn/src/main/java/org/onosproject/vtn/impl/VTNManager.java
index ee05883..382eeb6 100644
--- a/apps/vtn/src/main/java/org/onosproject/vtn/impl/VTNManager.java
+++ b/apps/vtn/src/main/java/org/onosproject/vtn/impl/VTNManager.java
@@ -240,10 +240,8 @@
BridgeDescription sw = it.next();
Set<PortNumber> ports = bridgeConfig.getPortNumbers();
ports.stream().filter(p -> p.name().equalsIgnoreCase(vxlanName))
- .forEach(p -> {
- programTunnelOut(sw.deviceId(), network.segmentationId(), p,
- h.mac(), appId, Objective.Operation.ADD);
- });
+ .forEach(p -> programTunnelOut(sw.deviceId(), network.segmentationId(), p,
+ h.mac(), appId, Objective.Operation.ADD));
}
});
@@ -308,12 +306,10 @@
ports.stream()
.filter(p -> p.name()
.equalsIgnoreCase(tunnelName))
- .forEach(p -> {
- programTunnelOut(sw.deviceId(),
- network.segmentationId(), p,
- host.mac(), appId,
- Objective.Operation.ADD);
- });
+ .forEach(p -> programTunnelOut(sw.deviceId(),
+ network.segmentationId(), p,
+ host.mac(), appId,
+ Objective.Operation.ADD));
}
});
programLocalIn(deviceId, network.segmentationId(), inPort, host.mac(),
@@ -374,12 +370,10 @@
ports.stream()
.filter(p -> p.name()
.equalsIgnoreCase(vxlanName))
- .forEach(p -> {
- programTunnelOut(sw.deviceId(),
- segId, p,
- host.mac(), appId,
- Objective.Operation.REMOVE);
- });
+ .forEach(p -> programTunnelOut(sw.deviceId(),
+ segId, p,
+ host.mac(), appId,
+ Objective.Operation.REMOVE));
}
});
programLocalIn(deviceId, segId, inPort, host.mac(),