Update checkstyle to 8.10
- fix issues detected
- YANG custom registrator should be subject to checkstyle
- fix Java 8 syntax related violations
Change-Id: I0fc52c6612a40d851fd9bc3bf019621776b1f92a
diff --git a/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2TunnelHandler.java b/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2TunnelHandler.java
index eb18381..c736614 100644
--- a/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2TunnelHandler.java
+++ b/apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/pwaas/DefaultL2TunnelHandler.java
@@ -425,7 +425,7 @@
// iterate over links and get all devices in the order
// we find them
- List<DeviceId> deviceList = new ArrayList<DeviceId>();
+ List<DeviceId> deviceList = new ArrayList<>();
for (Link link : path) {
if (!deviceList.contains(link.src().deviceId())) {
deviceList.add(link.src().deviceId());
@@ -894,6 +894,7 @@
}
}
+ @Override
@Deprecated
public void tearDown(Set<L2TunnelDescription> pwToRemove) {
@@ -1125,10 +1126,10 @@
dstMac);
FilteringObjective.Builder filteringObjectiveBuilder =
createNormalPipelineFiltObjective(inPort, l2Tunnel.transportVlan(), dstMac);
- context = new DefaultObjectiveContext(( objective ) ->
+ context = new DefaultObjectiveContext((objective) ->
log.debug("Special filtObj for " + "for {} populated",
l2Tunnel.tunnelId()),
- ( objective, error ) ->
+ (objective, error) ->
log.warn("Failed to populate " +
"special filtObj " +
"rule for {}: {}",
@@ -1665,9 +1666,9 @@
dstMac);
FilteringObjective.Builder filteringObjectiveBuilder =
createNormalPipelineFiltObjective(inPort, l2Tunnel.transportVlan(), dstMac);
- context = new DefaultObjectiveContext(( objective ) ->
+ context = new DefaultObjectiveContext((objective) ->
log.debug("Special filtObj for " + "for {} removed",
- l2Tunnel.tunnelId()), ( objective, error ) ->
+ l2Tunnel.tunnelId()), (objective, error) ->
log.warn("Failed to populate " + "special filtObj " +
"rule for {}: {}", l2Tunnel.tunnelId(), error));
TrafficTreatment.Builder treatment = DefaultTrafficTreatment.builder();