*/
package org.opendaylight.yangtools.yang.data.api;
-import com.google.common.base.Preconditions;
-import com.google.common.collect.Lists;
+import static java.util.Objects.requireNonNull;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
this.path = new ArrayList<>();
}
- YangInstanceIdentifierBuilder(final Iterable<PathArgument> prefix, final int hash) {
- this.path = Lists.newArrayList(prefix);
+ YangInstanceIdentifierBuilder(final List<PathArgument> prefix, final int hash) {
+ this.path = new ArrayList<>(prefix);
this.hash = new HashCodeBuilder<>(hash);
}
@Override
public InstanceIdentifierBuilder node(final PathArgument arg) {
- return addArgument(Preconditions.checkNotNull(arg));
+ return addArgument(requireNonNull(arg));
}
@Override