*/
package org.opendaylight.mdsal.binding.dom.codec.impl;
-import com.google.common.base.Preconditions;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.base.Throwables;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
final Codec<Object, Object> codec) {
- this.bindingType = Preconditions.checkNotNull(valueType);
- this.codec = Preconditions.checkNotNull(codec);
+ this.bindingType = requireNonNull(valueType);
+ this.codec = requireNonNull(codec);
try {
this.getter = MethodHandles.publicLookup().unreflect(getter).asType(OBJECT_TYPE);