Migrate entity ownership to JDT annotations
[mdsal.git] / entityownership / mdsal-eos-binding-api / src / main / java / org / opendaylight / mdsal / eos / binding / api / Entity.java
index 7f5e024bea3ab1f15d102b427f285d58971424c9..3b1cee14d70d424d1c1866428ff1ba0c4f4d95cd 100644 (file)
@@ -9,7 +9,7 @@ package org.opendaylight.mdsal.eos.binding.api;
 
 import com.google.common.annotations.Beta;
 import com.google.common.base.Preconditions;
-import javax.annotation.Nonnull;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.mdsal.eos.common.api.GenericEntity;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsal.core.general.entity.rev150930.EntityKey;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
@@ -28,7 +28,7 @@ public class Entity extends GenericEntity<InstanceIdentifier<?>> {
      * @param type the entity type
      * @param id the entity id.
      */
-    public Entity(@Nonnull final String type, @Nonnull final InstanceIdentifier<?> id) {
+    public Entity(final @NonNull String type, final @NonNull InstanceIdentifier<?> id) {
         super(type, id);
     }
 
@@ -39,7 +39,7 @@ public class Entity extends GenericEntity<InstanceIdentifier<?>> {
      * @param type the type of the entity
      * @param entityName the name of the entity used to construct a general-entity InstanceIdentifier
      */
-    public Entity(@Nonnull String type, @Nonnull String entityName) {
+    public Entity(final @NonNull String type, final @NonNull String entityName) {
         super(type, InstanceIdentifier.builder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang
                 .mdsal.core.general.entity.rev150930.Entity.class,
                     new EntityKey(Preconditions.checkNotNull(entityName, "entityName should not be null"))).build());