*/
package org.opendaylight.yangtools.yang.model.api;
+import static java.util.Objects.requireNonNull;
+
import com.google.common.annotations.Beta;
-import com.google.common.base.Preconditions;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.opendaylight.yangtools.yang.common.QName;
private final boolean yinElement;
YangStmtMapping(final Class<? extends DeclaredStatement<?>> clz, final String nameStr) {
- type = Preconditions.checkNotNull(clz);
+ type = requireNonNull(clz);
//FIXME: fill up effective type correctly
effectiveType = null;
name = yinQName(nameStr);
}
YangStmtMapping(final Class<? extends DeclaredStatement<?>> clz, final String nameStr, final String argumentStr) {
- type = Preconditions.checkNotNull(clz);
+ type = requireNonNull(clz);
//FIXME: fill up effective type correctly
effectiveType = null;
name = yinQName(nameStr);
YangStmtMapping(final Class<? extends DeclaredStatement<?>> clz, final String nameStr, final String argumentStr,
final boolean yinElement) {
- type = Preconditions.checkNotNull(clz);
+ type = requireNonNull(clz);
//FIXME: fill up effective type correctly
effectiveType = null;
name = yinQName(nameStr);