Migrate entity ownership to JDT annotations
[mdsal.git] / entityownership / mdsal-eos-common-spi / src / main / java / org / opendaylight / mdsal / eos / common / spi / AbstractGenericEntityOwnershipCandidateRegistration.java
index 7bfd4f235fc7d2af4d0cbf1c0842ef7b6b054215..eb19fdf8fc07bd08c621ee1f079273325fddcba6 100644 (file)
@@ -5,11 +5,9 @@
  * 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.mdsal.eos.common.spi;
 
-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.mdsal.eos.common.api.GenericEntityOwnershipCandidateRegistration;
 import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
@@ -22,11 +20,9 @@ import org.opendaylight.yangtools.concepts.Path;
  * @param <E> the GenericEntity type
  */
 public abstract class AbstractGenericEntityOwnershipCandidateRegistration<P extends Path<P>, E extends GenericEntity<P>>
-        extends AbstractObjectRegistration<E>
-        implements GenericEntityOwnershipCandidateRegistration<P, E> {
+        extends AbstractObjectRegistration<E> implements GenericEntityOwnershipCandidateRegistration<P, E> {
 
-    protected AbstractGenericEntityOwnershipCandidateRegistration(@Nonnull final E entity) {
-        super(Preconditions.checkNotNull(entity, "entity cannot be null"));
+    protected AbstractGenericEntityOwnershipCandidateRegistration(final @NonNull E entity) {
+        super(entity);
     }
 }
-