summaryrefslogtreecommitdiffstats
path: root/infra/bgp-translate-impl
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-06-27 21:03:03 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-27 21:07:35 +0200
commitf601696f8e6456363a42fb9c6dbe703c4bf98dd7 (patch)
treec4294ec168aa5156f67fa7c89665d4d04818587a /infra/bgp-translate-impl
parent9410a994afc24692b8e9e3bbb05bbe80b113cc5b (diff)
bgp: mark parameters of RouteWriter @NonNull
The RouteWriter interface is used by LocRibChangeListener, which never passes null parameters. Change-Id: I33a775de6c67d24bc271c0af21c9634c661e85e9 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/bgp-translate-impl')
-rw-r--r--infra/bgp-translate-impl/src/main/test/java/io/fd/honeycomb/bgp/translate/impl/LocRibWriterTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/infra/bgp-translate-impl/src/main/test/java/io/fd/honeycomb/bgp/translate/impl/LocRibWriterTest.java b/infra/bgp-translate-impl/src/main/test/java/io/fd/honeycomb/bgp/translate/impl/LocRibWriterTest.java
index 754264d..c4a23c1 100644
--- a/infra/bgp-translate-impl/src/main/test/java/io/fd/honeycomb/bgp/translate/impl/LocRibWriterTest.java
+++ b/infra/bgp-translate-impl/src/main/test/java/io/fd/honeycomb/bgp/translate/impl/LocRibWriterTest.java
@@ -21,7 +21,6 @@ import static org.opendaylight.controller.md.sal.common.api.data.LogicalDatastor
import io.fd.honeycomb.translate.bgp.RouteWriter;
import io.fd.honeycomb.translate.write.WriteFailedException;
import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
import org.junit.Before;
import org.junit.Test;
import org.mockito.ArgumentMatchers;
@@ -32,8 +31,8 @@ import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev171207.ipv4.routes.Ipv4Routes;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev171207.ipv4.routes.ipv4.routes.Ipv4RouteKey;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev171207.ipv4.routes.ipv4.routes.Ipv4Route;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev171207.ipv4.routes.ipv4.routes.Ipv4RouteKey;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.labeled.unicast.rev171207.labeled.unicast.routes.LabeledUnicastRoutes;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.labeled.unicast.rev171207.labeled.unicast.routes.list.LabeledUnicastRoute;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.PathId;
@@ -126,18 +125,18 @@ public class LocRibWriterTest {
}
@Override
- public void create(@Nonnull final InstanceIdentifier id, @Nullable final Route dataAfter)
+ public void create(@Nonnull final InstanceIdentifier id, @Nonnull final Route dataAfter)
throws WriteFailedException.CreateFailedException {
}
@Override
- public void delete(@Nonnull final InstanceIdentifier id, @Nullable final Route dataBefore)
+ public void delete(@Nonnull final InstanceIdentifier id, @Nonnull final Route dataBefore)
throws WriteFailedException.DeleteFailedException {
}
@Override
- public void update(@Nonnull final InstanceIdentifier id, @Nullable final Route dataBefore,
- @Nullable final Route dataAfter) throws WriteFailedException.UpdateFailedException {
+ public void update(@Nonnull final InstanceIdentifier id, @Nonnull final Route dataBefore,
+ @Nonnull final Route dataAfter) throws WriteFailedException.UpdateFailedException {
}
}
} \ No newline at end of file