Migrate mdsal-binding-api to JDT annotations
[mdsal.git] / binding / mdsal-binding-api / src / main / java / org / opendaylight / mdsal / binding / api / DataTreeProducerBusyException.java
index 07edf8ad48e87fc4edf554c86aa9279a9a5e9378..1e06b4be915f99ac19f3a180c483c9ae43dc8800 100644 (file)
@@ -7,24 +7,22 @@
  */
 package org.opendaylight.mdsal.binding.api;
 
-import com.google.common.base.Preconditions;
-import javax.annotation.Nonnull;
+import static java.util.Objects.requireNonNull;
+
+import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Exception indicating that the {@link DataTreeProducer} has an open user transaction and cannot be
  * closed.
  */
 public class DataTreeProducerBusyException extends DataTreeProducerException {
-
     private static final long serialVersionUID = 1L;
 
-
-    public DataTreeProducerBusyException(@Nonnull final String message, @Nonnull final Throwable cause) {
-        super(Preconditions.checkNotNull(message, "message"), cause);
+    public DataTreeProducerBusyException(final @NonNull String message, final @NonNull Throwable cause) {
+        super(requireNonNull(message, "message"), cause);
     }
 
-    public DataTreeProducerBusyException(@Nonnull final String message) {
-        super(Preconditions.checkNotNull(message, "message"));
+    public DataTreeProducerBusyException(final @NonNull String message) {
+        super(requireNonNull(message, "message"));
     }
-
 }