Get rid of JSR305 annotations
[bgpcep.git] / bgp / rib-spi / src / main / java / org / opendaylight / protocol / bgp / rib / spi / PeerTrackerInformation.java
index b4afa4e9dd898e41cacb730f1a7e35fa129a6dd2..f270a757bbc0a88f99b1faba040d621cd9d63cc5 100644 (file)
@@ -8,8 +8,8 @@
 
 package org.opendaylight.protocol.bgp.rib.spi;
 
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev180329.SendReceive;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.PeerId;
@@ -29,8 +29,7 @@ public interface PeerTrackerInformation {
      *
      * @return PeerID
      */
-    @Nonnull
-    PeerId getPeerId();
+    @NonNull PeerId getPeerId();
 
     /**
      * Returns if peer supports Additional Path for specific table.
@@ -38,7 +37,7 @@ public interface PeerTrackerInformation {
      * @param tableKey table
      * @return true if Additional Path is supported for defined table
      */
-    default boolean supportsAddPathSupported(@Nonnull final TablesKey tableKey) {
+    default boolean supportsAddPathSupported(final @NonNull TablesKey tableKey) {
         final SendReceive sendReceive = getSupportedAddPathTables(tableKey);
         return sendReceive != null && (sendReceive.equals(SendReceive.Both) || sendReceive.equals(SendReceive.Receive));
     }
@@ -49,8 +48,7 @@ public interface PeerTrackerInformation {
      * @param tableKey table
      * @return AddPath support configuration if supported, otherwise null
      */
-    @Nullable
-    SendReceive getSupportedAddPathTables(@Nonnull TablesKey tableKey);
+    @Nullable SendReceive getSupportedAddPathTables(@NonNull TablesKey tableKey);
 
     /**
      * Returns true if we have advertized support for a table, i.e. any prefix from this table should
@@ -59,7 +57,7 @@ public interface PeerTrackerInformation {
      * @param tableKey table
      * @return true if the table is being advertized to the peer.
      */
-    boolean supportsTable(@Nonnull TablesKey tableKey);
+    boolean supportsTable(@NonNull TablesKey tableKey);
 
     /**
      * Creates Table Adj Rib Out Instance identifier.
@@ -67,30 +65,26 @@ public interface PeerTrackerInformation {
      * @param tablekey table key
      * @return instance identifier.
      */
-    @Nonnull
-    KeyedInstanceIdentifier<Tables, TablesKey> getRibOutIId(@Nonnull TablesKey tablekey);
+    @NonNull KeyedInstanceIdentifier<Tables, TablesKey> getRibOutIId(@NonNull TablesKey tablekey);
 
     /**
      * Returns Peer Role.
      *
      * @return PeerRole
      */
-    @Nonnull
-    PeerRole getRole();
+    @NonNull PeerRole getRole();
 
     /**
      * Returns Cluster Id.
      *
      * @return Cluster Id
      */
-    @Nullable
-    ClusterIdentifier getClusterId();
+    @Nullable ClusterIdentifier getClusterId();
 
     /**
      * Returns Local AS.
      *
      * @return AS
      */
-    @Nullable
-    AsNumber getLocalAs();
+    @Nullable AsNumber getLocalAs();
 }