X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fprovider%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fit%2Fprovider%2FCarDataTreeChangeListener.java;h=8d9eb77ddc812f6a5538a2dbd7fc99cb96b7dbd7;hb=refs%2Fchanges%2F11%2F80211%2F6;hp=c157b6cd8997cb892e90e3da3c315433ad0088ae;hpb=11d13dee3de89651199e942c4b8265b93ebdef76;p=controller.git diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarDataTreeChangeListener.java b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarDataTreeChangeListener.java index c157b6cd89..8d9eb77ddc 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarDataTreeChangeListener.java +++ b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/CarDataTreeChangeListener.java @@ -5,16 +5,10 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.clustering.it.provider; -import static org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType; -import static org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType.DELETE; -import static org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType.SUBTREE_MODIFIED; -import static org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType.WRITE; - -import javax.annotation.Nonnull; import org.opendaylight.controller.md.sal.binding.api.DataObjectModification; +import org.opendaylight.controller.md.sal.binding.api.DataObjectModification.ModificationType; import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener; import org.opendaylight.controller.md.sal.binding.api.DataTreeModification; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.sal.clustering.it.car.rev140818.Cars; @@ -32,7 +26,7 @@ public class CarDataTreeChangeListener implements DataTreeChangeListener { private static final Logger LOG = LoggerFactory.getLogger(CarDataTreeChangeListener.class); @java.lang.Override - public void onDataTreeChanged(@Nonnull java.util.Collection> changes) { + public void onDataTreeChanged(final java.util.Collection> changes) { if (LOG.isTraceEnabled()) { for (DataTreeModification change : changes) { ouputChanges(change); @@ -40,7 +34,7 @@ public class CarDataTreeChangeListener implements DataTreeChangeListener { } } - private void ouputChanges(final DataTreeModification change) { + private static void ouputChanges(final DataTreeModification change) { final DataObjectModification rootNode = change.getRootNode(); final ModificationType modificationType = rootNode.getModificationType(); final InstanceIdentifier rootIdentifier = change.getRootPath().getRootIdentifier();