Switch to Objects.requireNonNull
[mdsal.git] / binding2 / mdsal-binding2-dom-codec / src / main / java / org / opendaylight / mdsal / binding / javav2 / dom / codec / generator / impl / StaticBindingProperty.java
index 94fef6b73b5ae5528d23f17e976c63960303def0..62754501b8bebfc7f2556cc54846a0f3e246a7a8 100644 (file)
@@ -7,8 +7,9 @@
  */
 package org.opendaylight.mdsal.binding.javav2.dom.codec.generator.impl;
 
+import static java.util.Objects.requireNonNull;
+
 import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
 
 /**
  * Definition of static property for Binding objects.
@@ -29,9 +30,9 @@ public class StaticBindingProperty {
     private final Object value;
 
     public StaticBindingProperty(final String name, final Class<?> type, final Object value) {
-        this.name = Preconditions.checkNotNull(name);
-        this.type = Preconditions.checkNotNull(type);
-        this.value = Preconditions.checkNotNull(value);
+        this.name = requireNonNull(name);
+        this.type = requireNonNull(type);
+        this.value = requireNonNull(value);
     }
 
     public String getName() {